编程的容易忽略的小问题记录

(1)C++中不要比较float,double类型的相等(eg, "=","<=",">="),会出bug
(2)Release版本中注意负数求模(eg, (-1)%m)程序会崩溃,但Debug模式下貌似没有这个问题

Comments

Popular posts from this blog

Ubuntu Installation Experience With Windows 8 preinstalled

How to get Xtion PRO LIVE work in Ubutun 14.04 with PCL

北美信用记录((Credit record) 的FAQ