A:45 B:50 C:60 D:55
下列哪个是C++语言的有效标识符
A:“>30Not<60” B:“>30 Or<60” C:“>30 And<60” D:“>30Like<60
对于模板定义关键字class和typename说法不正确的是( )。
A:每次调用此过程,该过程中的局部变量都会被重新初始化 B:在本过程中使用到的,在其他过程中定义的变量也为Statci型 C:每次调用此过程时,该过程中的局部变量的值保持在上一次调用后的值 D:定义了该过程中定义的局部变量为"自动"变量
下列选项中不全是C++语言关键字的是( )。
A:const,break,default B:long,void,using C:virtual,extern,include D:try,throw,this
当使用fstream流类定义一个流对象并打开一个磁盘文件时,文件的隐含打开方式为( )。
A:ios::in B:ios::out C:ios::in D:ios::out E:以上都不对
sizeof(float)是( )。
A:一个双精度型表达式 B:一个整型表达式 C:一种函数调用 D:一个不合法的表达式
下列程序的输出结果为( )。
# include <iostream.h>
int func(int n)
{
if (n<1)return 1;
else return n + func (n-1);
return 0;
{
void main( )
{
cout << func (5) << endl;
}
A:Variant B:Byte C:Boolean D:Integer