#if 1
/*
员工信息有:姓名, 性别, 年龄, 电话, 工资, 工号
通过multimp进行有5名员工,为其分配部门,信息插入,显示, 保存。
*/
#include<iostream>
#include<map>
#include<vector>
#include<map>
#include<time.h>
#include<stdlib.h>
#define DEVELOP 1
#define FINANCIAL 2
#define PALNNING 3
class Staff //员工类 以及初始化
{
public:
Staff()
{
name = "a";
sex = "s";
age = 1;
phone = "123";
wage = 1;
number = "123";
}
std::string name;
std::string sex;
unsigned int age;
std::string phone;
unsigned int wage;
std::string number;
};
void staff_entry(std::vector<Staff>& staff) //录入5个员工信息(部分)
{
std::vector<std::string> staff_name;
Staff sta;
int sala[5] = {
20000, 30000, 40000, 50000,
C++ map练习
最新推荐文章于 2024-08-16 17:30:33 发布