我正在学习数据结构,我是初学者。你能不能帮帮我 ? 先谢谢你。
我有 contact.h, contact.cpp 和 main.cpp.In。contact.h
我准备定义类和函数,在 contact.cpp 中我准备应用函数,在 main.cpp 中我准备使用函数。
请你指导我如何去做?
class Contact{
private:
map<string, vector<string>> contactMap;
vector<string> othreData;
public:
void loadContact();
//saveContact
void insertContact(string, string, string, string);
void deleteContact();
void retrieveContact(string);
void sortContact();
void printContact();
}