C#从控制台读取字符串
using System; class ReadLine { public static void Main() { Console.Write("Please enter your favorite animal: "); string animal = Console.ReadLine(); Console.WriteLine("Good choice: " + animal); } }
C#从控制台读取字符串
using System; class ReadLine { public static void Main() { Console.Write("Please enter your favorite animal: "); string animal = Console.ReadLine(); Console.WriteLine("Good choice: " + animal); } }