Implicit logic tests shall be avoided.
All conditional expressions shall be explicit.
Float values shall not be tested for equality.
When checking a value for equality to a constant value, the constant should be on the left-hand side of the expression.
Unsigned variables shall be used for all bit-manipulation operations.
Flow Control Statements 3.4
The code following a case label shall be terminated by a break statement.
本文关键:[FW]C Coding Standards Quick Reference
相关方案
- 又一个自动下载病毒的政府网站(…
- 使用WML和ASP编写动态手机…
- 面向对象软件构造(第2版)-第…
- CLDC1.1的新特性…
- TCP/IP在网络中的高效配置…
- J2ME平台手机游戏移植的体会…
- 介绍J2ME的几个重要概念…
- 从一个例子看WML文档规则…
- 基于MIDP实现Resourc…
- 每日构建(daily buil…
- 一个象棋手机游戏的源代码…
- Exchange 2000 S…
- [全程建模]三个问题的对话之一…
- 使用ADS1.2进行嵌入式软件…
- Installing Bugz…
- 不可多得系列网址--DICOM…
- 使用MIDP2.0开发游戏(1…
- Class文件详解 (2)…
- Apache内存池内幕(2)…
- Joel Spolsky给计算…