浮点型变量在计算机内存中占用4字节(Byte),即32-bit。遵循IEEE-754格式标准。一个浮点数由2部分组成:底数m 和 指数e。 ±mantissa × 2exponent(注意,公式中的mantissa 和 exponent使用二进制表示)底数部分 使用2进制数来表示此浮点数的实际值。指 Read More
posted @ 2016-12-08 00:56 findumars Views(425) Comments(0) Diggs(0)
Cppcheck is an analysis tool for C/C++code. Unlike C/C++ compilers and many other analysis tools, it doesn’t detect syntax errors. Cppcheck only detec Read More
posted @ 2016-12-08 00:54 findumars Views(1176) Comments(0) Diggs(0)
如果是在VC6下进行编译,应引入下面的预编译宏,注意放在windows.h的前面#undef WINVER #define WINVER 0x500为什么要引入上面的宏呢?看看winuser.h里面该API的声明就明白了:#if(WINVER >= 0x0500)WINUSERAPIBOOLWINA Read More
posted @ 2016-12-08 00:53 findumars Views(3168) Comments(0) Diggs(0)
判断一个窗口是否被挂起了(就是没有响应了),在多窗口编程了经常会用到,在给别的窗口发消息前,为了目的窗口能确定收到消息,常常在之前先检测窗口是否被挂起了,我们以前常用的方式的是使用下面的方法: [cpp] view plain copy // 判断一个窗口是否已经停止响应了(超时0.5秒) DWOR Read More
posted @ 2016-12-08 00:52 findumars Views(1942) Comments(0) Diggs(0)
线程天敌TerminateThread与SuspendThread 作者:童磊(magictong) 目的:不是演示TerminateThread和SuspendThread的原理而是希望能在自己的程序中摒弃它们。 一、不使用TerminateThread的N条理由(先YY一下) 1、如果使用Ter Read More
posted @ 2016-12-08 00:48 findumars Views(4086) Comments(0) Diggs(0)