摘要: 方法一: Console.Write("Press any key to continue . . . "); Console.ReadKey(true); 注:也可用ReadLine()或Read(),但是只能对回车进行响应,不能达到anykey的效果。 方法二: 1) 在源文件using处加入using System.Runtime.InteropServices;语句 2) 在类中前几行插入以下语句 [DllImport("msvcrt.dll")] static extern bool system(string str); 3) 在需要的地方调 阅读全文
posted @ 2011-02-25 19:18 .小武. 阅读(4916) 评论(1) 推荐(1) 编辑