class A { public: A():id(0),money(0){} ~A(){} bool save(int m){ money=m;} int inquiry(){ return money;} void promt(){ cout<<"name:"<<name<<" money:"<<money;} private: string name; int money; int id; }A[10];