1 代码1 system("pause"); return 0 2 代码2 System.Environment.Exit(0); 3 代码3 Process cur = Process.GetCurrentProcess(); cur.Kill();