• <rp id="xge2m"><ruby id="xge2m"><input id="xge2m"></input></ruby></rp>
    <dd id="xge2m"><noscript id="xge2m"></noscript></dd>
  • <rp id="xge2m"></rp>
    ݴWԿWgӭ                ҲmՈΓ̎ >>
    >> ԇ} >> ƒ

    Կơ04737 C++OӋԇ}

    [ڣ2020-01-15]   Դ www.novmedic.com  ݴWԿ  ߣݴWԿW   x 60 [w С]

     

    (1)ddzɆT\ĺԭe`( )

    A)Fraction operator+(FractionFraction);

    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));

    @ݔY( )

    A)1

    B)3 0

    C)1—2

    D)ѭh

    𰸣C

    (3)³

    |nclude

    using namespace std;

    int main()

    {

    int*P;

    *P=9

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

    return 0;

    }

    g\г򌢳Fr( )

    A)grFZe`ɿɈļ

    B)\Еrһݔl'lle value at P9

    C)\Еrһݔllle value at P*9

    D)\Еrпܳe

    𰸣D

    (4)ifZZʽ飺

    ʽlif(<l>)<Z>

    ʽ2if(<l>)<Zl>

    else<Z2>

    PZʽбe`( )

    A)<l>ֿһifZif(if(a==0)…)…

    B)<Z>ֿһifZif(…)if(…)…

    C)<l>ǰ߉݋\!Q<Zl><Z2>λZ书ܲ׃

    D)<Z>ֿһѭhZif(…)while(…)…

    𰸣A

    (5)з̖_c++R( )

    A)enum

    B)2b

    C)f00һ9

    D)_32

    𰸣D

    (6)Pc++f_( )

    A)“ǶxһwȲĺ

    B)wĺһlZreturnZ

    C)˜c++Ҫ{һ֮ǰ•ԭ

    D)gķֵͺͅ^ֺIJͬdʽ

    𰸣C

    (7)\dnjе\xغx( )

    A)Ԍ(int)Ĕ¶x“+”\ĺx

    B)Ը׃һ\ăȼͲ

    C)ֻdc++ѽе\ܶx\

    D)C++ѽе\d

    𰸣C

    (8)P“Ĕ_( )

    A)“{ÕrlD

    B)“ͨ^PIinlinex

    C)“ͨ^g팍F

    D)“wĺһlZreturnZ

    𰸣C

    (9)\dԪ( )

    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;

    }

    g\@򌢳Fr( )

    A)geo\

    B)ݔ3

    C)ݔ3.0

    D)ݔһ_Ĕ

    𰸣D

    (11)PڳɆTe`()

    A)ɆTһǃ“

    B)ɆTd

    C)ɆTOÅĬJֵ

    D)ɆToB

    𰸣A

    (12)x

    class MyClass

    {

    public

    private

    ______________________________________

    int data;

    };

    ҪMyClassdݔ\“>>”ʹóп“cin>>obj;”ʽ׃MyClass

    0bjДɆTdataֵtM̎•Z䑪( )

    A)friend istream& operator>>(istream&isMyClass&a);

    B)friend istream&operator>>(istream&isMyClass a);

    C)istream&operator>>(istream&isMyClass&a);

    D)istream&operator>>(istream&isMyClass a);

    𰸣A

    (13)ڳܱ( )

    A)ͨ^ֻ{ijɆT

    B)ͨ^ֻ{oBɆT

    C)ijɆTdzɆT

    D)ͨ^{κβ׃ֵijɆT

    𰸣A

    (14)x

    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 <>

    };

    ĂĶx_()

    A)

    B)

    C)

    D)

    𰸣B

    (15)Pthisָᘵ_()

    A)ijɆTthisָ

    B)Ԫthisָ

    C)κcPĺthisָ

    D)ķoBɆTthisָ

    𰸣D

    (16)P̓f_()

    A)̓^еĺ̓

    B)̓oBɆT

    C)ֻͨ^ָᘻ{̓

    D)еijɆT̓

    𰸣B

    (17)PڻPϵĔ_()

    A)ÿֻһֱӻ

    B)еijɆTLеκγɆT

    C)Ę캯Ę캯w{

    D)^лijɆT߀ԶxµijɆT

    𰸣D

    (18)x

    class B

    {

    publicvoid funl(){}

    privatevoid fun2(){}

    protectedvoid fun3(){}

    };

    class Dpublic B

    j

    protectedvoid fun4(){}

    };

    objDČtZв`Lƙ޵()

    A)obj.funl();

    B)obj.fun2();

    C)obj.tim3();

    D)ohj.fun4();

    𰸣A

    (19)x

    class Foo

    {

    public

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

    Foo(){}//

    private

    Foo(){}//

    int value=0//

    };

    дZe`()

    A)

    B)

    C)

    D)

    𰸣D

    (20)x

    class Point

    {

    int xx.yy;

    public

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

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

    };

    Z

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

    tPointĘ캯{õĴΔ()

    A)2

    B)3

    C)4

    D)5

    𰸣C

     

    Cϑ}

    ʹVC++6.0_ļAµԴļ3.cppжxҪвĶxa

    (1)xCPointĎЃɂĘ캯ɂ׃xyintȱʡֵ0Ոע1mZ

    (2)CRectangleĘ캯opointlpoint2xֵՈע2mZ

    (3)CRectangleĺGetAreaÁӋeՈע3mZ

    (4)xCRectangleЃɂ˽Ќpointlpoint2͞PointՈע4mZ

    ע⣺ָλZ֮ՈҪĄӳе

    ԇ}

    #include(iostream.h)

    #include<CMATH)< p>

    classCPoint

    {

    public

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

    {

    x=i

    y=j;

    }

    intGetX()

    {

    returnX;

    }

    intGetY()

    {

    returny;

    }

    private

    intXY;

    };

    classCRectangle

    {

    public

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

    {

    }

    intGetArea()

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

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

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

    height;

    }

    private

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

    CPointpoint2;

    };

    intmain()

    {

    CRectanglerect(0011);

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

    return0;

    }

    𰸣(1)“CPoint(inti=0intj=O)”

    (2)“CRectangle(inttopintleftintrightintbottom)pointl(topleft)point2(rightbottom)”

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

     

     

    ʽ
    1.ֱӁ̎ԃrՈyCӡ22{ײ4  IICӡ
    2.WxWϻԒWTԒQQ]ȡָrgȁУW
    3.IWʂÂYϺ͵һWMֱӵУ
    4.ԃԒ 0371 - 56756528 18939255817 ώ ώ 5.ԃQQ c@oҰlϢ c@oҰlϢ

    • վDƬҕlgOӋͳƷԿ˾PˌлδWڙMһʽdDdRt֙Փ׷P؟

    ΢ŽՄ

    精品人妻无码一区二区三区

  • <rp id="xge2m"><ruby id="xge2m"><input id="xge2m"></input></ruby></rp>
    <dd id="xge2m"><noscript id="xge2m"></noscript></dd>
  • <rp id="xge2m"></rp>