(7)在学生成绩表中,如果需要根据输入的学生姓名查找学生的成绩,需要使用的是___[7]___插销
相关问题推荐
-
补充完整下面的模板定义: template//Type为类型参数 class Xtwo{//由两个Type类型
补充完整下面的模板定义:
template<class Type> //Type为类型参数
class Xtwo{ //由两个Type类型的数据成员构成的模板类
Type a;
Type b;
public:
Xtwo(Type aa=0,Type bb=0):a(aA) ,b(bB) { }
int Compare( ){ //比较a和b的大小
if(a>B) return 1;
else if(a==B) return 0;
else return-1;
}
Type Sum( ){return a+b;} //返回a和b之和
Type Mult( ); //函数声明,返回a和b之乘积
};
template<class Type>
______ ::Mult( ){return a*b;} //Mult函数的类外定义
-
有如下程序
int a[10]={1,2,3,4,5,6,7,8,9,10};
int *p=&a[3],b;b=p[5];
则b的值是
A.5
B.6
C.9
D.8
-
( 29 ) 有如下程序 :
#include
using namespace std;
class Obj{
static int i;
public:
Obj( ){ i++; }
~Obj( ){ i--; }
static int getVal( ){ return i;}
};
int Obj::i=0;
void f(){Obj ob2; cout<
int main( ){
Obj ob1;
f( );
Obj *ob3=new Obj; cout
delete ob3; cout< return 0;
}
程序的输出结果是
A ) 232
B ) 231
C ) 222
D ) 221
-
请填写【2】处标准答案。
-
请填写【2】处答案。