单项选择题
有如下程序段: int i=1; while (1) { i++; if(i == 10) break; if(i%2 == 0) cout << ‘*’; } 执行这个程序段输出字符*的个数是
A.10
B.3
C.4
D.5
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
下列枚举类型的定义中,包含枚举值3的是
A.enum test {RED, YELLOW, BLUE, BLACK};
B.enum test {RED, YELLOW=4, BLUE, BLACK};
C.enum test {RED=-1, YELLOW,BLUE, BLACK};
D.enum test {RED, YELLOW=6, BLUE, BLACK};
点击查看答案
单项选择题
下列字符串可以用作C++标识符的是
A.2009var
B.goto
C.test - 2009
D._123
点击查看答案
相关试题
有如下程序 #include using namespace...
有如下程序: #include using namespac...
有如下程序 #include using namespace...
有如下程序: #include using namespac...
有如下程序: #include using namespac...