1、多次输入,判断,调用接口,输出
Console.WriteLine("请输入需要进行测试的题目(1、2、3)"); var code = Console.ReadLine(); while (code != "") { switch (code) { case "0": Console.WriteLine(""); Console.WriteLine("请输入需要进行测试的题目(1、2、3)"); code = Console.ReadLine(); break; case "1": Console.WriteLine("并未完成"); code = "0"; break; case "2": Console.WriteLine("并未完成"); code = "0"; break; case "3": Console.WriteLine("并未完成"); code = "0"; break; } }
标签:case,code,Console,记录,程序,break,WriteLine,控制台,ReadLine From: https://www.cnblogs.com/jiaoyi1e/p/17071769.html