#include<iostream>
using namespace std;
class Vector
{
int size;
int * buffer;
public:
Vector(int s=100);
void display();
// Vector(Vector &src);
~Vector();
};
Vector::Vector(int s)
{ buffer=new int [size=s] ;
for(int i=0;i<size;i++)
buffer[i]=i*i;
}
/*Vector::Vector(Vector &src)
{
size=src.size;
buffer=new int[size];
for(int i=0;i<size;i++)
{
buffer[i]=src.buffer[i];
}
}*/
void Vector::display()
{
for(int i=0; i<size; i++)
cout<<buffer[i];
cout<<endl;
}
Vector::~Vector()
{
delete[]buffer;
}
int main()
{
Vector a(10);
Vector b(a);
a.display();
b.display();
}