namespace OperatorsAppl
{
class Program
{
static void Main(string[] args)
{
string str = Console.ReadLine("");
Console.WriteLine("用户输入:"+str);
Console.Readkey();
}
}
}
namespace OperatorsAppl
{
class Program
{
static void Main(string[] args)
{
string str = Console.ReadLine("");
Console.WriteLine("用户输入:"+str);
Console.Readkey();
}
}
}
首先,你的代码是存在错误
这一句,Console.ReadLine();是不具有参数的,你带了 一个字符串参数。正确写法应该是
而且你 这一句里也是错的
'k'请大写。