#include #include #include #include #include templateclass multime { unsigned int nr; element *pv; friend ostream &operator<<(ostream &,multime &); friend ofstream &operator<<(ofstream &,multime &); friend istream &operator>>(istream &,multime &); friend ifstream &operator>>(ifstream &,multime &); public: void crescator(); void descrescator(); multime(unsigned int n):nr(n) {pv=new element[n];} multime(multime &); ~multime() { delete[nr] pv; } void sort(bool(*)()); friend bool ascendent(){return 1;}; friend bool descendent(){return 0;}; }; templatemultime::multime(multime &v) { unsigned int i; nr=v.nr; pv=new element[v.nr]; for(i=0;i ostream &operator<<(ostream &k,multime &v) { unsigned int i; for(i=0;i istream &operator>>(istream &k,multime &v) { unsigned int i; cout<<"Introduceti elementele vectorului:"; for(i=0;i>(istream &k,persoana &p) { cout<<"\n"; cout<<"Introduceti numele persoanei:"; k>>p.nume; cout<<"Introduceti varsta persoanei:"; k>>p.varsta; cout<<"Introduceti salariul persoanei:"; k>>p.salariul; cout<<"\n"; return k; } ifstream &operator>>(ifstream &k,persoana &p) { k>>p.nume; k>>p.varsta; k>>p.salariul; return k; } ofstream &operator<<(ofstream &k,persoana &p) { k<(persoana &p2) { if(strcmp(nume,p2.nume)<=0) if(varsta<=p2.varsta) if(salariul v1(3),v7(3); cin>>v1; multimev2(v1); cout<<"\n Persoanele sunt :"< v4(10); cin>>v4; cout<<"\n Vectorul de numere intregi este:"<