📄 project.h
字号:
#pragma once
#ifndef _PROJECT_
#define _PEOJECT_
#include <fstream>
#include <cstdio>
#include "ToolFun.h"
#include <algorithm>
#include <list>
#include "Customer.h"
using namespace std;
class Project
{
public:
Project(void);
~Project(void);
public:
bool display(const string& proj ); // display all custermer in the project
bool display(); // display all custermer in projects.
bool add(const string& proj ); // create a project.
bool joinCustomer( const string& proj,int id ); // add a customer to a project.
bool chg( const string& proj, const string& newProj );// change a proejct's name.
bool del(const string& proj ); // delete a project.
bool remCustomer( const string& proj, int id ); // delete a customer form a project.
bool save(); // save memory date back to project file
private:
bool initProj();
private:
multimap< string,int > projMap;
list<string> projList; // all project's name;
Customer customer;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -