问个很弱智的C#的问题
所在版块:社会百科 发贴时间:2003-09-30 15:53

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
在某个Visual Studio .Net的教材上看到了这样的Hello World的Code,但是在VC6里死活也不能compile.请问是为什么?难道只有VS.Net才可以?谢了

using System;

class Welcome
{
static void Main()
{
Console.WriteLine("Please Enter Your Name:");
string name = Console.ReadLine();
Console.WriteLine("Welcome to you, {0}!", name);
}
}


DEBUG:
error C2873: 'System' : symbol cannot be used in a using-declaration
fatal error C1004: unexpected end of file found
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Put your OWN COOL signature here!
 相关帖子 我要回复↙ ↗回到正文
问个很弱智的C#的问题 小希   (452 bytes , 470reads )
这是C#的代码 bigfox   (82 bytes , 324reads )
some basic understanding SmellsLikeTeenSpirit   (314 bytes , 278reads )