⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 project.h

📁 标准C++编写的小小CRM软件,无任何平台依赖.采用标准XML作为数据库.只需重新纺译,可在任何平台上运行.目前测试过在GCC和VC下都可以编译通过
💻 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 + -