年假作业4.0

1、6,2

2、循环结果为,第一行:73174,第二行:83134

3、28

4、10,8

5、没看懂

6、0.1.4.9.16......,代码为:

  1. Vector(const Vector &other);//声明增加的拷贝构造函数

  2. Vector::Vector(const Vector &other)//增加的拷贝构造函数
    {
        size=other.size;  // 拷贝 size 成员变量
        buffer=new int[size];// 为 buffer 分配内存
        for(int i=0;i     buffer[i]=other.buffer[i];
    }

7、不理解

你可能感兴趣的:(算法,数据结构)