sharpdevelop中编译下面程序出现 error cs0103:The name'Console'does not exist in the current contex
sharpdevelop中编译下面程序出现errorcs0103:Thename'Console'doesnotexistinthecurrentcontext....下...
sharpdevelop中编译下面程序出现 error cs0103:The name'Console'does not exist in the current context....下面是程序
class Class1
{
static void Write()
{
string myString="String defined in Write()";
Console.WriteLine("Now in Write()");
Console.WriteLine("myString={0}",myString);
}
static void Main(string[] args)
{
string myString="String defined in Main()";
Write();
Console.WriteLine("\nNow in Main()");
Console.WriteLine("myString={0}",myString);
}
} 展开
class Class1
{
static void Write()
{
string myString="String defined in Write()";
Console.WriteLine("Now in Write()");
Console.WriteLine("myString={0}",myString);
}
static void Main(string[] args)
{
string myString="String defined in Main()";
Write();
Console.WriteLine("\nNow in Main()");
Console.WriteLine("myString={0}",myString);
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询