单项选择题

下列程序段中有错的是( )。

A.template<Class Type>
B.Type
C.func(Type a,b)
D.return(a>b)(a):(b);
<上一题 目录 下一题>
热门 试题

单项选择题
若有以下定义: char s(10)= program ,t[]= test ; 则下列选项中对字符串操作错误的是( )。
A.strcpy(s,t);
B.strcat(s,t);
C.cout<<strlen(s);
D.gets(s);
单项选择题
下列程序的运行结果为( )。 #include<iostream.h> void main() int a=2; int b=a+1; cou<<afo<<endl;
A.0.66667
B.0
C.0.7
D.0.66666666
相关试题
  • 下列函数的运行结果是( )。 #include...
  • 有以下程序: #include<iostream> usi...
  • 若有如下程序: #include<iostream> u...
  • 以下程序的输出结果是( )。 #include...
  • 若类A和类B的定义如下: class A int i...