不包含适合入口点的静态main方法
1static void main()
2 {
3 Console.WriteLine("Hello World!");
4 Console.WriteLine("Press any key to continue . . . ");
5 Console.ReadKey(true);
6 Thread thread = new Thread(new ThreadStart(Calculate));
7 thread.Start();
8 }
使用CSC编译,提示不包含适合入口点的静态main方法2 {
3 Console.WriteLine("Hello World!");
4 Console.WriteLine("Press any key to continue . . . ");
5 Console.ReadKey(true);
6 Thread thread = new Thread(new ThreadStart(Calculate));
7 thread.Start();
8 }
搞了半天才发现应该是Main而不是main
真是太粗心了,记下来,以后看到提醒自己,写程序的时候一定要小心