12 2014 档案

摘要:1)fflush编译器规定,fflush用于刷新输出流,对于输入流没有规定,也就是说 fflush(stdin) 的结果是未知的。这也就是在 VC下写C程序时,fflush(stdin)有效,VC下写C++程序时,fflush(stdin)无效的原因。2)VC下写C++程序时,清空缓存使用 clea... 阅读全文
posted @ 2014-12-30 00:04 luzhiyuan 阅读(305) 评论(0) 推荐(0)
摘要:1. 定义页属性数组 1 // Protection flags for memory pages (Executable, Readable, Writeable) 2 static int ProtectionFlags[2][2][2] = { 3 { 4 ... 阅读全文
posted @ 2014-12-10 23:33 luzhiyuan 阅读(272) 评论(0) 推荐(0)