????? ?§×?????????? ??                ?????????????????????÷???????÷ >>
?????×?? >> ???????? >> ????????

无需注册即送39-无需存款注册秒送18元

[??????2020-03-04]   ?????? www.zhengdazikao.net  ????? ?§×???  ×÷????????? ?§×?????   ?????? 6 ??[×??????  ?? ??]

 

(1)?????????????????±????????????????????????????? ? ????( )??

A)Fraction operator+(Fraction??Fraction);

B)Fraction operator??(Fraction);

C)Fraction&operator=(Fraction&??Fraction);

D)Fraction&operator+=(Fraction&??Fraction);

??°???C

(2)????????? ??

int x=3??

do{

x-=2;

COU[<<X??< p>

}while(!(--X));

??????????? ??????? ????( )??

A)1

B)3 0

C)1—2

D)??????

??°???C

(3)????????? ??

?nclude

using namespace std;

int main()

{

int*P;

*P=9??

cout<<”The value at p??”<< *p;

return 0;

}

± ????????? ????????? ????( )??

A)± ???±???????‥? ? ??????? ????????????

B)?????±???‥??????l'lle value at P??9

C)?????±???‥??????llle value at P??*9

D)?????±????????? 

??°???D

(4)if?????????‥??????? ??????

????l??if(<????>)<????>

? 

????2??if(<????>)<????l>

else<????2>

?????????????‥??????????± ????? ? ????( )??

A)<????>??????????????if??????????if(if(a==0)…)…

B)<????>??????????????if??????????if(…)if(…)…

C)??????<????>?°????????????????!??????<????l>??<????2>??????????????????±?

D)<????>????????????????????????????if(…)while(…)…

??°???A

(5)??????????????????c++± ??????( )??

A)enum

B)2b

C)f00??9

D)_32

??°???D

(6)????????c++?????????÷????????????( )??

A)?????????????‥????? ????????????????????

B)????????? ????????±?????return????

C)± ×?c++??? ???÷?????????????°??±?????? ?÷??????

D)± ???÷? ? ??????????????? ????????± ????????????????????????

??°???C

(7)????????????????????????????? ? ????????? ??( )??

A)??????? ±?? ??(??int? ??)?????????????‥??“+”????????????

B)??????±???????????????????????????×÷??????

C)????????c++???????????????????????‥??????????

D)C++??????????? ??????????????????

??°???C

(8)??????????????????????????????????( )??

A)???????????÷???±??? ????×???

B)????????±????‥????? ×?inline???‥??

C)???????????‥??± ???÷????????

D)????????????????? ????????±?????return????

??°???C

(9)????????????????????????????????( )??

A)=()( )->

B) + - ++ --

C)> < >= <=

D)+= -= *=/=

??°???A

(10)????????? ??

#include

using namespaee std;

int main()

{

void function(double val);

double val??

function(val);

eout<<VAL??< p>

return 0;

}

void function(double val)

{

val=3;

}

± ????????????? ????????? ????( )??

A)± ????? ?????‥????

B)??????3

C)??????3.0

D)?????????????‥????

??°???D

(11)???????????±???????÷??? ??????? ? ????(????)??

A)???±???????‥??????????

B)???±????????????

C)???±????????? ??????????????

D)???±????????????????

??°???A

(12)??????? ?‥????

class MyClass

{

public??

private??

______________________________________

int data;

};

??????MyClass? ?????÷??????????“>>”????????? ??????“cin>>obj;”????????±?MyClass? ??

??? 0bj?????????±data??????? ? ??????? ?÷????????( )??

A)friend istream& operator>>(istream&is??MyClass&a);

B)friend istream&operator>>(istream&is??MyClass a);

C)istream&operator>>(istream&is??MyClass&a);

D)istream&operator>>(istream&is??MyClass a);

??°???A

(13)????????? ????±?? ????? ??( )??

A)?‥??????? ?????÷??? ???????±????

B)?‥??????? ?????÷?????????±????

C)????? ?????±?????????±

D)?‥??????? ?????÷??????????±???? ???????±????

??°???A

(14)??????? ?‥????

class AA

{

im a??

public??

int getRef()const{return&a;}//??

int getValue()const{return a;}//??

void set(int n)const{a=n;}//??

friend void show(AA aa)const{cout<<A;} p ??<>

};

???????????????‥????????????(??)??

A)??

B)??

C)??

D)??

??°???B

(15)????????this??????? ??????????????(??)??

A)? ?????±????????this????

B)? ??????????????this????

C)??????? ? ????????????this????

D)? ???????????±????????this????

??°???D

(16)????????? ?????????÷????????????(??)??

A)??? ? ? ??????????????? ????

B)? ?????????????????±????

C)?????‥??????? ?????÷??? ????

D)? ? ? ???????±????????? ????

??°???B

(17)????????? ? ????? ? ??????????????????????(??)??

A)????? ? ???????????±??? ? 

B)??? ? ???????±????????? ? ???????????±

C)? ? ????? ????±???????? ? ????? ?????????÷??

D)??? ? ????????? ? ?????±?????????‥?????????±

??°???D

(18)??????? ?‥????

class B

{

public??void funl(){}

private??void fun2(){}

protected??void fun3(){}

};

class D??public B

j

protected??void fun4(){}

};

??obj??? D????? ??? ?????????????????????????‥??????(??)??

A)obj.funl();

B)obj.fun2();

C)obj.tim3();

D)ohj.fun4();

??°???A

(19)??????? ?‥????

class Foo

{

public??

Foo(int v)??value(V){}//??

??Foo(){}//??

private??

Foo(){}//??

int value=0??//??

};

???????????‥? ? ??????(??)??

A)??

B)??

C)??

D)??

??°???D

(20)??????? ?‥????

class Point

{

int xx.yy;

public??

Point()??xx(0)??yy(0){}

Point(int x??int Y=0)??xx(X)??YY(Y){}

};

??????????

Point a(2)??b[3]????c[4];

? Point? ????? ????±??÷??????????(??)??

A)2??

B)3??

C)4??

D)5??

??°???C

 

????×?????????

????VC++6.0? ????? ??????????????? ????3.cpp???????‥????? ??? ????°???? ? ????????×÷????? ???‥??????? ????

(1)?‥??? CPoint??????????????????? ??????????±?????x??y??????int???????±??????0??????×???1? ? ?????±????????

(2)? ??? CRectangle????? ????????pointl??point2??????????×???2? ? ?????±????????

(3)? ??? CRectangle??????GetArea????????????????????????×???3? ? ?????±????????

(4)?‥??CRectangle? ??? ??????????????? pointl??point2??? ????Point??????×???4? ? ?????±????????

×????????????‥????? ????????????????????????? ??????????????

??????? ??

#include(iostream.h)

#include<CMATH)< p>

classCPoint

{

public??

//********1********

{

x=i??

y=j;

}

intGetX()

{

returnX;

}

intGetY()

{

returny;

}

private??

intX??Y;

};

classCRectangle

{

public??

//********2********

{

}

intGetArea()

//********3********

intheight=point1.GetY()??point2.GetY();

return(width*height)?width*height????width*

height;

}

private??

//********4********

CPointpoint2;

};

intmain()

{

CRectanglerect(0??0??1??1);

cout<<RECT.GETAREA()<<ENDL;< p>

return0;

}

??°???(1)??? ??“CPoint(inti=0??intj=O)”??

(2)??? ??“CRectangle(inttop??intleft??intright??intbottom)??pointl(top??left)??point2(right??bottom)”??

(3)??? ??“intwidth=point1.GetX()-point2.GetX();”??

 

 

±‥??????
1.?±????????×?????±‥????±‥???±??????? ??? ?°????????????2????2?????×????4?? ?? ?‥±???? ????±???? ????????
2.?§? ????????? ???°±‥?????§?±???????°??QQ????×?????±‥??? ???÷????? ? ?????????‥?±????????±‥?????§??
3.??? ?§? ×?±???????×?????????? ?§?????±??????±‥????
4.×??????°?? 0371 - 56756528 18939255817 ? ???? ?????? 5.×???QQ?? ???÷?????????????? ???÷??????????????

°??‥? ?÷?? ±???? ????×?????????????????????? ??????? ??×÷????°??‥? ??×?????? ? ???‥????×‥??? ??? ????? ????????±???? ?????‥??????????????????????????×???? ?‥??????????? ?????‥???????‥×???? ???‥????????
无需注册即送39-无需存款注册秒送18元 | 下一页