位移进制运算
摘要: 在计算机系统中,数值一律用补码来表示(存储)。
主要原因:使用补码,可以将符号位和其它位统一处理;同时,减法也可按加法来处理。另外,两个用补
码表示的数相加时,如果最高位(符号位)有进位,则进位被舍弃。
补码与原码的转换过程几乎是相同的。
数值的补码表示也分两种情况:.....
阅读全文
posted @
2009-05-29 14:58 邹江平 阅读(410) |
评论 (0) 编辑
良好的编程习惯,你知道多少呢?你又用过多少呢?<一>
摘要: Good Programming Practice
1,Read the manuals for the version of C++ you are using.
Refer to these manuals frequently to be sure you are aware of the rich collections of C++ features and that you are using them correctly.
2,Your computer and compiler are good teachers.
If after reading your C++ language manuals ,
you still are not sure how a feature of C++ works,
experiment using a small "test program" and see what happens.
Set your complier options for "maximum warnings".
St
阅读全文
posted @
2009-03-02 19:34 邹江平 阅读(941) |
评论 (3) 编辑