younthu

2010年11月24日

vs里面的移位运算问题

摘要: int i = (0x87654321>>44)&0xF;//在vs2008里面i算出来是4,正确结果应该是0找到了结果,在这里有解释:http://blog.csdn.net/zdl1016/archive/2009/09/17/4563910.aspx。用一句话解释就是:以前看到C++标准上说,移位运算符(<<、>>)出界时的行为并不确定 阅读全文

posted @ 2010-11-24 23:06 younthu 阅读(169) 评论(0) 推荐(0) 编辑

在vs2008下面编译CppUnit

摘要: 参考了2个页面页面1,怎么用cppunithttps://www.embracetherandom.com/MFCTestRunner/index.htm页面2,怎么在vs2008下面编译cppunithttp://www.cnblogs.com/guojialiu/archive/2009/03/30/1424715.html还有注意一点,下载的时候要下载cppunit-1.12.1.tar.g... 阅读全文

posted @ 2010-11-24 21:20 younthu 阅读(365) 评论(0) 推荐(0) 编辑

导航