单项选择题

每个C++程序中都必须有且仅有一个( )。

A.类
B.预处理命令
C.主函数
D.语句
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序的输出结果是( )。 main() int a=4,b=5,c=0,d; d=!a&&!b)|| !c; cout<<d<<endl;
A.1
B.0
C.非0的数
D.-1
单项选择题
阅读以下程序 #include<iostream.h> void main() charline[10]; in>>line; cout<<line<<endl; 如运行时输入This is an example.<CR>,则程序的输出结果是( )。
A.This
B.This is
C.This is a
D.This is an example.
相关试题
  • 有如下程序 #include<iostream.h> vo...
  • 有以下程序: Class Date public: Dat...
  • 如有下程序: #include<iostream> usi...
  • 下列函数的运行结果是( )。 #include...
  • 有如下程序: #include<iostream> usi...