不包含适合于入口点的静态“Main”方法/does not contain a static 'Main' method suitable for an entry point

 

error:as subject

solution:

1. Must be declared as static

2. Main, is defined with the wrong case, such as lower-case main.

3. must return void or int

4. it must have either no parameters or else one parameter of type string[]

 

 

static void Main()
{
// Create objects by using the new operator:
...

// Create an object using the default constructor:
...

// Display results:
...
}
}

posted on 2016-06-10 11:40  alanVan  阅读(945)  评论(0编辑  收藏  举报

导航