摘要:
#include <iostream>#include <string>#include <vector>#include <iomanip>using namespace std;class info{public: info():pc(0){} ~info(){} void input(string name,int age,int salary) { _name.push_back(name); _age.push_back(age); _salary.push_back(salary); pc++; ... 阅读全文
摘要:
#include <iostream>#include <string>using namespace std;class absperson;class absmed{public: absmed(){} virtual ~absmed(){} virtual void send(string,absperson*)=0; virtual void set(absperson*,absperson*)=0;};class absperson{public: absperson(){} virtual ~absperson(){} virtual vo... 阅读全文
摘要:
#include <iostream>#include <string>#define CAP 100using namespace std;class group{public: group():pc(0){} virtual ~group(){} friend class Iterator; void push(string m) { if (pc<CAP) vec[pc++]=m; } string pop() { if (!isempty()) return vec[... 阅读全文