📄 mian.cpp
字号:
#include<iostream.h>
#include<string.h>
#include<fstream.h>
#include<iomanip.h>
void main() void main()
{ cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
cout<<" 学校教职工信息资料库 "<<endl;
cout<<"◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆"<<endl;
cout<<endl;
cout<<endl;
a:
cout<<" 请键入您的选择:"<<endl;
cout<<" ?1.增加员工."<<endl;
cout<<" ?2.在校全部教职工基本资料一览."<<endl;
cout<<" ?3.查询具体教职工的具体信息."<<endl;
cout<<" ?4.在职教师资料一览"<<endl;
cout<<" ?5.在校工人资料一览."<<endl;
cout<<" ?6.计算在校教职工工资."<<endl;
cout<<" ?7.退出"<<endl;
cout<<endl;
cout<<"◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆"<<endl;
cout<<endl;
int a;
cin>>a;
switch(a){
case 1: { cout<<"***********************************************************************"<<endl;
cout<<endl;
employeer EM;
EM.add();
cout<<'/n'<<endl;
cout<<endl;
EM.display();}
cout<<"/n/n/t/t/t/t/t/t/t已经在资料库中增加了教职工工资料"<<endl;
cout<<endl;
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
goto a;break;
case 2:{cout<<"***********************************************************************"<<endl;
cout<<endl;
employeer EM;
yg.display();
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
goto a;break;}
case 3:{ cout<<"***********************************************************************"<<endl;
cout<<endl;
employeer EM;
EM.display();
EM.search();
cout<<endl;
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
goto a;break;}
case 4: { cout<<"***********************************************************************"<<endl;
cout<<endl;
teacher teach;
teach.print();
cout<<endl;
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
goto a;break;}
case 5: { cout<<"***********************************************************************"<<endl;
cout<<endl;
worker wor;
wor.print();
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
goto a;break;}
case 6: { cout<<"***********************************************************************"<<endl;
j: cout<<endl;
cout<<" 请输入您的选择:"<<endl;
cout<<" ?1.了解领导福利状况"<<endl;
cout<<" ?2.了解助教福利状况"<<endl;
cout<<" ?3.了解教授福利状况"<<endl;
cout<<" ?4.了解固定工福利状况"<<endl;
cout<<" ?5.了解临时工福利状况"<<endl;
cout<<" ?6.返回主菜单 "<<endl;
cout<<endl;
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
int k;
cin>>k;
switch (k){
case 1:{
employeer EM;
EM.display();
cout<<endl;
cout<<"领导分别是:"<<endl;
cout<<endl;
leader lea
lea.print();
cout<<endl;
lea.salary();
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
goto j; break;
}
case 2:{
employeer EM;
EM.display();
cout<<"助教分别是:"<<endl;
cout<<endl;
assistant as;
as.print();
cout<<endl;
as.salary();
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
goto j; break;
}
case 3:{
employeer EM;
EM.display();
cout<<"教授分别是:"<<endl;
cout<<endl;
teacher te;
te.print();
cout<<endl;
te.salary();
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
goto j; break;
}
case 4:{
employeer EM;
EM.display();
cout<<"固定工分别是:"<<endl;
cout<<endl;
permanent per;
per.print();
cout<<endl;
per.salary();
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
goto j;break;
}
case 5:{yuangong yg;
yg.display();
cout<<"临时工分别是:"<<endl;
cout<<endl;
floater flo;
flo.print();
cout<<endl;
flo.salary();
cout<<"☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆"<<endl;
goto j;break;
}
case 6:{goto a;}
default: cout<<"您的输入有错误,请重新选择/n"<<"^_^不要着急,慢慢来"<<endl;goto j;
goto a;
}
case 7:return;}
default: cout<<"您的输入有错误,请重新选择/n"<<"^_^不要着急,慢慢来"<<endl;goto a;}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -