整专业资料
微信QQ群
考生网QQ群

群号:517231281

扫码加群
点击二维码加群

考生网微信公众号

微信号:zikaosw

课程试听
最新资讯

手机端访问

1、直接输入www.zikaosw.cn
2、扫描左侧二维码

登录 | 注册
登录/注册后,可享受
  • 课程免费试听
  • 试做在线题库
  • 学习提升指导
  • [单选题] 设函数voidinc(int)将形参加1,如有整型变量inti=10;则执行inc(i);后,i的值为()

    • A、9
    • B、10
    • C、11
    • D、未知

     纠错    

  • 助考班推荐

您可能感兴趣的试题

  • 1、[填空题]将部分成员函数声明为______,用于提供外界和这个类对象相互作用的接口,从而使得其它函数也可以访问处理该类的对象。

  • 2、[主观题]【程序分析题】#include
    using namespace std;class Complex
    {
    private:
    double realPart,imagePart;
    public:
    Complex(double real=0,double image=0):realPart(real),imagePart(image){}Complex operator-(const Complex&a)const{
    return Complex(realPart-
    realPart,imagePart-
    imagePart);}void Show(const{cout<int main(
    Complex a(2,9),b(1,1),c;c=a-b;
    cout<<"a=";
    Show(;cout<<"b="";
    Show(;cout<<"c=";
    ShowO;return 0;
    }
    【原题如下】

  • 3、[主观题]【程序填空题】将程序补充完整,使其输出:Time:2023年10月
    C++程序设计(11)
    高等教育C++程序设计自学考试
    #include
    #includeusing namespace std;int main(
    string s[]={""2023年","10月"","___(1)"3;string c="C++程序设计";
    if(
    emptyo)
    cout<<""string is NULL"<cout<<""Time:"<<__(2)<size(cout<【原题如下】

  • 4、[主观题]【程序填空题】程序用来求直角三角形斜边长度,运行结果为5。
    #include
    #includeusing namespace std;class Point
    {
    private:
    double x,y;
    (1):______
    public:
    Point(double i=0,double j=O){x=i;y=j;}Point(Point&p){x=p.x;y=p.y3}
    };
    class Line{
    private:
    Point p1,p2;
    public:
    Line(Point&xp1,Point&xp2):p1(xp1),p2(xp2)0double GetLengthO
    double dx=p2.x-p1.x;double dy=p2.y-p1.y;return sqrt(dx*dx+dy*dy);
    };
    int main(){
    Point L1,L2(3,4);//两条直角边的长度Line L3(L1,L2);
    cout<<__(2)_<}
    【原题如下】

  • 5、[主观题]【程序分析题】#include
    using namespace std;class Time
    public:
    Time(int h,int m){hours=h;minutes=m;}void Time120;
    friend void Time24(Time time);private:int hours,minutes;
    };
    void Time::Time120{
    if(hours>12)cout<}
    void Time24(Time time){cout<{
    Time T1(23,30),T2(10,45);T1.Time120;
    Time24(T1);T2.Time120;Time24(T2);
    }
    【原题如下】

Copyright © 2010 - 2023 湖南求实创新教育科技有限公司 All Right Reserved.

温馨提示:如您需要的资料本网暂时没有,请于工作日08:00-18:00,点击这里,联系客服及时补充资料。