2005年11月09日

float a,b;
1 wrong way:
if (a == b)
;//todo
2 right way:
if (fabs(a) – fabs(b) < EPSILON_E3 ? 1 : 0)
;//todo

reason:
The min float is MIN_FLOAT, so it has no meaning to compare a & b using “==” if one of them is less than MIN_FLOAT. For example, 0.12333335 & 0.1233338 is equal in our opnions, but the first method will think they are not equal and the second method will think as we do.

2005年11月07日

开发一个CE程序,就需要这些:都可以微软官方免费下载到:

eVC4.0

http://download.microsoft.com/download/WindowsCENETPlatformBuilder/Install/4.0/NT5XP/EN-US/eVC4.exe

序列号:TRT7H-KD36T-FRH8D-6QH8P-VFJHQ

eVC4.0 SP4

http://download.microsoft.com/download/a/7/3/a735c7fb-dcbd-429f-9090-d09b3b15d3fa/evc4sp4.exe

PocketPC2003SDK

http://download.microsoft.com/download/6/9/5/69570242-44e8-45e6-a252-9bd56db8ec83/Microsoft%20Pocket%20PC%202003%20SDK.msi

WM2003SE CHS模拟器

http://download.microsoft.com/download/e/2/8/e28792ca-d04b-407b-9b18-75b9128f0cc9/Windows%20Mobile%202003%20Second%20Edition%20Emulator%20Images%20for%20Pocket%20PC%20-%20CHS.msi

参考:http://www.vckbase.com/document/viewdoc/?id=1107

我那破机器居然发不了正文:(