using System;
class Test
{
public int max(int x,int y){
if(x > y)
return x;
else
return y;
}
public void Main(){
Console.WriteLine("the max of 6 and 8 is:{0}",max(6,8));
}
}
编译后会出现“welcom”未定义入口点为什么?
...全文
22回复打赏收藏
请教一个简单问题!!!
using System; class Test { public int max(int x,int y){ if(x > y) return x; else return y; } public void Main(){ Console.WriteLine("the max of 6 and 8 is:{0}",max(6,8)); } } 编译后会出现“welcom”未定义入口点为什么?