Project:Cainiao_Estation
This commit is contained in:
47
Cai_Niao_E_Station/user.h
Normal file
47
Cai_Niao_E_Station/user.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#pragma once
|
||||
#include <iostream>
|
||||
#include <cstring>
|
||||
#include "package.h"
|
||||
#include "stock.h"
|
||||
|
||||
class Package;
|
||||
|
||||
class User {
|
||||
|
||||
private:
|
||||
std::string name;
|
||||
std::string phone_num;
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>Ȳ<EFBFBD>ʹ<EFBFBD>ã<EFBFBD><C3A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֱ<EFBFBD><D6B1>ͳ<EFBFBD>ư<EFBFBD><C6B0><EFBFBD>//<2F><>Package<67><65>
|
||||
std::string uid;//<2F>ⲿ<EFBFBD>洢user<65><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD>user<65><72>uid<69><64><EFBFBD><EFBFBD>ֵ
|
||||
int jingyan;
|
||||
public:
|
||||
User();
|
||||
User(std::string n, std::string p, std::string u);
|
||||
~User();
|
||||
User& reg(std::string n, std::string p, std::string u);
|
||||
User& alt_name(std::string n);
|
||||
User& alt_pn(std::string p);
|
||||
void del();
|
||||
std::string Check_uid();
|
||||
void display();
|
||||
std::string Check_name();
|
||||
std::string Check_phone();
|
||||
User& add_exp(int s);
|
||||
User& refresh();
|
||||
Package* Check_Package();
|
||||
User& operator=(const User& x);
|
||||
bool operator==(const User& x);
|
||||
};
|
||||
|
||||
class VIP : public User {
|
||||
private:
|
||||
//std::string name;
|
||||
//std::string phone_num;
|
||||
//std::string uid;
|
||||
//int jingyan;
|
||||
bool flag;
|
||||
public:
|
||||
VIP();
|
||||
VIP(User& x, bool f);
|
||||
VIP& reg(User& x);
|
||||
};
|
Reference in New Issue
Block a user