using System;
namespace P2_5
{
class SelectOutput
{
static void Main()
{
Console.WriteLine("请选择要显示的内容:");
Console.WriteLine("1. 开发环境");
Console.WriteLine("2. 编程语言");
Console.WriteLine("3. 项目类型");
Console.WriteLine("4. 退出");
ConsoleKeyInfo k = Console.ReadKey();
if (k.KeyChar == '1')
Console.WriteLine("Microsoft Visual Studio .NET");
else if (k.KeyChar == '2')
Console.WriteLine("C Sharp");
else if (k.KeyChar == '3')
Console.WriteLine("控制台应用程序");
}
}
}
namespace P2_5
{
class SelectOutput
{
static void Main()
{
Console.WriteLine("请选择要显示的内容:");
Console.WriteLine("1. 开发环境");
Console.WriteLine("2. 编程语言");
Console.WriteLine("3. 项目类型");
Console.WriteLine("4. 退出");
ConsoleKeyInfo k = Console.ReadKey();
if (k.KeyChar == '1')
Console.WriteLine("Microsoft Visual Studio .NET");
else if (k.KeyChar == '2')
Console.WriteLine("C Sharp");
else if (k.KeyChar == '3')
Console.WriteLine("控制台应用程序");
}
}
}