In while (expression) statement the expression is evaluated. If it is non-zero, statement is executed and expression is reevaluated. This cycle continues until expression becomes zero, at which point execution resumes after statement. 只要 expression 不为 0 ,比如为负整数,可以一直循环。 #include <stdio.h> int main() { int condition = -2; do { printf("condition = %d\n", condition); condit...
Although variables of enum types may be declared, compilers need not check that what you store in such a variable is a valid value for the enumeration. Nevertheless, enumeration variables offer the chance of checking and so are often better than #define s. 我的翻译: 尽管可以声明 enum 类型的变量,但是编译器不检查存储在这种类型变量中的值是否有效。然而,枚举变量提供了检查的机会,且通常比 #define ...
队长 (相信美好,才能看见美好!)
2013-11-25 20:16:20
队长 (相信美好,才能看见美好!)
2013-03-04 10:42:46
大毛光光头 (必须强人所难)
2012-01-07 17:06:44
耿老的竹林 (给生活加点糖~~)
2011-04-14 22:54:19