【发布时间】:2013-12-06 14:00:25
【问题描述】:
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# 完全陌生。请先阅读一些教程。
-
在这里阅读更多答案:stackoverflow.com/a/4898117/468718
标签: c#