class MyVector{ int n1; int *p;public: MyVector(int n) { p=new int(n); for(int i=0;i<n;i++) { p[i]=0; } n1=n; }//~MyVector()//{// delete [] p;//}friend ostream & operator <<(ostream & out,const MyVector &a){ for(int i=0;i<a.n1;i++) out<< a.p[i]; out<<endl; return out;}};
MyVector c(8); cout << c; return 0;