根据我国现行规定,土地增值税实行()。
A.四级超率累进税率
B.差别比例税率
C.五级超率累进税率
D.定额税率
第1题
补充完整下面的模板定义:
template<class//Type> //Type为类型参数
class Xtwo{//由两个Type类型的数据成员构成的模板类
Type a;
Type b;
public:
Xtwo(Type aa=O,Type bb=O):a(a.A),b(bB){}
int Compare(){//比较a和b的大小
if(a>B)retum 1;
else if(a==@B)@return 0;
else return-1:
f
}
Type Sum();{return a+b;}//返回a与b的和
Type Mult(); //函数声明,返回a和b的乘积
};
template<class Type>
【 】::Mult(){return a*b;}//Mult函数的类外定义
第2题
(15 )补充完整下面的模板定义:
template<class Type> //Type 为类型参数
class Xtwo{ // 由两个 Type 类型的数据成员构成的模板类
Type a;
Type b;
public:
Xtwe (Type aa=0, Type bb=0 ) : a (aa ) , b (bb ) {}
int Ccmpare () {// 比较 a 和 b 的大小
if (a>b ) returm 1;
else if (a==b ) return 0;
else return -1;
}
Type Snm () {return a+b;} // 返回 a 和 b 之和
Type Mult () ; // 函数声明,返回 a 和 b 之乘积
} ;
Template<class Type>
【 15 】 : : Mult () {return a*b;} //Mult 函数的类外定义
第3题
A.Dream a;
B.Dream <class int>a;
C.Dream <int>a;
D.Dream <class type>a;
第4题
A.template <class t1,class t2,class t3="double,int" n="100">
B.template <class t1,class t2="double,class" t3,int n="100">
C.template <class t1,class t2,class t3,int n>
D.template <class t1,class t2="double,class" t3="float,int" n="100">
第5题
template<class Type>
void Func(Type a[], Type b[],【 】)
{
for(int i=0;i<n;i++)
b[n-i-1]=a[i];
}
第6题
A.template <class Q> q F(Q x) {return Q+x;}
B.template <class Q> Q F(Q x){return x+x;}
C.template <class T> T F(Tx){return x*x;}
D.template <class T> bool F(Tx){return x>1;}
第7题
下列程序将x、y和z按从小到大的顺序排列,请将下面的函数模板补充完整。
template<class T>
void order()
{
T al
if(x>y)
{
a=x;x=y; y=a;
}
if(y>z)
{
a=y;y=Z; z=a;
}
if(x>y)
{
a=X;X=y; y=a;
}
}
第8题
下列程序段中有错的是()。
Template<class Type> //A
Type //B
Func(Type a,b) //C
{retum(a>b)?(a):(b);} //D
A.A
B.B
C.C
D.D
第9题
下列程序段中有错的是()。
Template<class Type> //A
Type //B
Func(Type a,b) //C
{retum(a>b)?(a):(b);} //D
A.A
B.B
C.C
D.D
第10题
在下面程序横线处填上适当内容,使程序输出为:55599。
include <iostream>
using namespace std;
template <class TYPE>
class HisClass
{
TYPE data;
public:
HisClass(TYPE a, TYPE b, TYPE C) ;
TYPE getData(){ return data;)
};
template<class TYPE>
HisClass<TYPE>::HisClass(TYPE a,TYPE b,TYPE C)
{
【 】;
else主f(b>C)
data=b;
else
data=c;
}
int main()
{
HisClass<int> x1(3,4,5),x2(5,3,4),x3(4,5,3),x4(7,8,9),x5(8,7,9);
cout<<x1.getData()<<x2.getData()<<x3.getData()
<<x4.getData()<<X5.getData();
return 0;
}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!