qingcheng奕  

2011年11月16日

摘要: 这个是用来清空cin缓冲区里面未读取的信息...例子: #include <iostream>using namespace std;int main () { char first, second; cout << "Please, enter a word: "; first=cin.get(); cin.sync(); cout << "Please, enter another word: "; second=cin.get(); cout << "The first word began 阅读全文
posted @ 2011-11-16 17:23 qingcheng奕 阅读(1944) 评论(0) 推荐(0)
 
摘要: 文章来自:http://www.cnblogs.com/JemBai/archive/2009/01/13/1374805.htmlVC下Debug和Release区别最近写代码过程中,发现 Debug 下运行正常,Release 下就会出现问题,百思不得其解,而Release 下又无法进行调试,于是只能采用printf方式逐步定位到问题所在处,才发现原来是给定的一个数组未初始化,导致后面处理异常。网上查找了些资料,在这 罗列汇总下,做为备忘~ 一、Debug 和 Release 的区别 Debug 通常称为调试版本,它包含调试信息,并且不作任何优化,便于程序员调试程序。Release 称为. 阅读全文
posted @ 2011-11-16 16:57 qingcheng奕 阅读(525) 评论(0) 推荐(0)