C++人才系统管理
#include
#include
using namespace std;
struct Node
{
string name, yixiang, didian, nengli;
int age;
Node* next;
};
struct Data
{ string name, zhaopin;
bool fabu;
Data* next;
};
class person//个人管理
{
public:
Node* head;
person() { head = NULL; }//*******************
void Insert()//个人简历填写
{
Node* p, * s;
if (head == NULL)
{
head = (Node*)new Node;
p = head;
}
else
{
s = head; p = head->next;
while (p != NULL)
{
p = p->next;
}
p = (Node*)new Node;
s->next = p;
}
cout << “请输入名字:”;
string a;
int b;
cin >> a;
p->name = a;
cout << “请输入年龄:”;
cin >> b;
p->age = b;
cout << “请输入个人能力:”;
cin >> a;
p->nengli = a;
cout << “请输入求职意向:”;
cin >> a;
p->yixiang = a;
cout << “请输入求职地点:”;
cin >> a;
p->didian = a;
p->next = NULL;
}
void chazhao()//个人简历搜索
{
cout << “请输入要查找的人的名字:”;
string a;
cin >> a;
Node* p = head;
cout << "" << endl;
while (p != NULL && p->name != a)p = p->next;
if (p == NULL)cout << “查无此人!” << endl;
else
{
cout << “姓名:” << p->name;
cout << " 年龄:" << p->age;
cout << " 个人能力:" << p->nengli;
cout << " 求职意向:" << p->yixiang;
cout << " 求职地点:" << p->didian << endl;
}
cout << "" << endl;
}