string FirstName = Console.ReadLine();
if (FirstName.Length > 12)
{
Console.WriteLine(".......................................");
}
if(FirstName.Length<3)
{
Console.WriteLine("....................");
}
Console.WriteLine("...................");
string SecondName = Console.ReadLine();
if (SecondName.Length > 12)
{
Console.WriteLine(".............................");
}
if(SecondName.Length<3)
{
我想要停止程序,如果他们按下输入没有提及价值,怎么做?? /?如何停止在C#中进一步执行程序#
可能重复的[如何关闭一个无形的C#应用程序](http://stackoverflow.com/questions/181018/how-to-close-a-formless-c-sharp-application) –
这个问题和你的其他问题表明你对C#完全陌生。请先阅读一些教程。 – venerik
阅读更多的答案在这里:http://stackoverflow.com/a/4898117/468718 –