1.职工工资信息管理系统怎么弄(至少包括:姓名,职称职职务,职称,工资)
2.系统简介: 每个学期的期中,学校教务处向各个学院发出下各学期的评比评比教学计划,包括课程名称、量化量化课程代码、系统系统新西兰离美国源码课时
3.求解一道C++程序设计的源码源码题目。。职称职日价托源码(职工信息管理系统)
4.计算机方面的评比评比论文如何发表? 评职称用
5.宝塔实测搭建开源OA人员信息管理系统
6.有一个APP的源代码,怎么运营
职工工资信息管理系统怎么弄(至少包括:姓名,量化量化职务,职称,工资)
c语言编的学生信息管理系统小程序 参考吧
<stdio.h>
#include <stdlib.h>
#include <string.h>
struct st
{
char name[];
int english;
int math;
int chinese;
int average;
st *next;
};
struct st *pend=NULL;//初始链表的尾指针
struct st *pendorder=NULL;//顺序链表的尾指针
struct st *pheadorder=NULL;//顺序链表的头指针
struct st *makeorder(struct st *phead);//按分数从大到小排序 生产链表
struct st *addtolist(struct st *add);// 将平均分最大的添到另一个链表
struct st *createlist();//输入学生信息时生成的初始链表
struct st * deletestu(char *name,st *phead);//删除一个学员的信息
struct st *addstu(st *name,st *phead);//向顺序链表添加一个元素,插入的系统系统地方按平均成绩
void printinfo(st *phead);//按平均成绩打印出每个学员的名字
int main()
{
int select;
char deletename[];
struct st *addstud=NULL;
struct st *phead=NULL;
phead=createlist();//输入时创建链表
pheadorder=makeorder(phead);//将链表排序
printf("input operation:1----deletestudent,2-----addstudent,3----output all student\n");
scanf("%d",&select);
while(select>0)//选择操作1为删除2为添加3为打印,其他的源码源码输入会跳出循环
{
switch(select)
{
case 1:
printf("please input the of the student to be deleted:\n");
scanf("%s",deletename);
pheadorder=deletestu(deletename,pheadorder);
printf("input operation:1----deletestudent,2-----addstudent,3----output all student\n");
scanf("%d",&select);
break;
case 2:
printf("please input the information of the student to be added:\n");
addstud=new st;
scanf("%s%d%d%d",addstud->name,&(addstud->english),&(addstud->math),&(addstud->chinese));
addstud->average=((addstud->english)+(addstud->math)+(addstud->chinese))/3;
while((addstud->english)<=0)
{
delete addstud;
printf("please input the information of the student to be added:\n");
addstud=new st;
scanf("%s%d%d%d",addstud->name,&(addstud->english),&(addstud->math),&(addstud->chinese));
addstud->average=((addstud->english)+(addstud->math)+(addstud->chinese))/3;
}
pheadorder=addstu(addstud,pheadorder);
printf("input operation:1----deletestudent,2-----addstudent,3----output all student\n");
scanf("%d",&select);
break;
case 3:
printinfo(pheadorder);
printf("input operation:1----deletestudent,2-----addstudent,3----output all student\n");
scanf("%d",&select);
break;
default:
goto laber;
}
}
laber:system("pause");
return 1;
}
struct st *createlist()//输入时创建初始链表
{
struct st *pfirst=NULL;
struct st *plast=NULL;
struct st *p=new st;
printf("please input the information of the students:\n");
scanf("%s%d%d%d",p->name,&(p->english),&(p->math),&(p->chinese));
p->average=((p->english)+(p->math)+(p->chinese))/3;
while((p->english)>0)
{
if(pfirst==NULL)
pfirst=plast=p;
else
plast->next=p;
plast=p;
printf("please input again:\n");
p=new st;
scanf("%s%d%d%d",p->name,&(p->english),&(p->math),&(p->chinese));
p->average=((p->english)+(p->math)+(p->chinese))/3;
}
plast->next=NULL;
printf("list create successful\n");
delete p;
return pfirst;
}
struct st *deletestu(char *name,st *phead)//删除一个学员
{
int flag=0;
st *p=NULL;
if(strcmp(phead->name,name)==0)
{
phead=phead->next;
flag=1;
}
else
for(p=phead;p;p=p->next)
{
if(strcmp(p->next->name,name)==0)
{
p->next=p->next->next;
flag=1;
break;
}
}
if(!flag)
printf("the student you delete is not in the list\n");
else printf("delete successful\n");
return phead;
}
struct st *addstu(st *name,st *phead)//按平均分增加一个学员
{
name->next=NULL;
struct st *p=NULL;
if((name->average)>(phead->average))
{
name->next=phead;
phead=name;
return phead;
}
else
{
for(p=phead;p->next;p=p->next)
{
if((name->average)>(p->next->average))
{
name->next=p->next;
p->next=name;
return phead;
}
}
}
p=p->next;
p->next=name;
return phead;
}
void printinfo(st *phead)//打印信息
{
st *p;
for(p=phead;p;p=p->next)
printf("%s\n",p->name);
}
struct st *addtolist(struct st *phead,struct st *add)//生成顺序链表时每回都添加一个平均成绩最高的学员信息
{
add->next=NULL;
if(phead==NULL)
pendorder=phead=add;
else
pendorder->next=add;
pendorder=add;
return phead;
}
struct st *makeorder(struct st *phead)//将初始链表变成顺序链表
{
if(phead!=NULL)
{
int max;
struct st *p=NULL;
struct st *index=NULL;
while(phead)
{
max=0;
for(p=phead;p;p=p->next)
{
if(p->average>max)
{
max=p->average;
index=p;
}
}
phead=deletestu(index->name,phead);
pheadorder=addtolist(pheadorder,index);
}
return pheadorder;
}
else printf("there is no list members to be ordered\n");
return pheadorder;
}
————小型公司工资管理系统
一〉题目要求
(1)公司主要有4类人员:经理、技术员、职称职销售员、评比评比销售经理。量化量化开奖预测网站源码要求存储这些人的系统系统职工号、姓名、源码源码月工资、anr源码位置岗位、年龄、性别等信息。晶晶该车软件源码
(2)工资的计算方法:
A.经理:固定月薪为;
B.技术员:工作时间*小时工资(元每小时);
C.销售员:销售额*4%提成;
D.销售经理:底薪()+所辖部门销售额总额*0.5%;
(3)输入数据要求每类人员不能少于4人,并按以下格式输出:
职工号 姓名 性别 年龄 岗位 工资 排名
及某部门经理所辖部门各售货员的业绩及自己的工资表:
(4)菜单要求:要有一个菜单,用于选择各项功能,其中
1) 数据录入:输入各种数据;
2) 数据统计:各销售经理的工资计算及最终按工资进行的冒泡排序;
3) 数据打印:打印上述表格;
4)数据备份:把相关数据写入文件;
5)退出:推出本系统;
二〉程序最终版:
1,程序员代码
#include<iostream.h>
#include<stdlib.h>
#include<fstream.h>
#include<iomanip.h>
#include<string.h>
class employee
{
public:
float salary;
employee()
{
salary=0;
}
void pay(){ }
void print(){ }
void input()
{
cout<<"的编号:";
cin>>no;
cout<<" 其姓名:";
cin>>name;
cout<<" 性别(m/w):";
cin>>sex;
cout<<" 年龄:";
cin>>age;
}
protected:
int no;
char name[8];
char sex;
int age;
};
class manager:virtual public employee
{
protected:
float monthlypay,sale;
public:
manager(){ monthlypay=;}
void input(){ cout<<"经理";employee::input();}
void save()
{
fstream outfile;
outfile.open("F:shuju.txt",ios::app);
if(!outfile)
{
cout<<"F can't open.\n";
abort();
}
outfile<<"经理"<<endl;
outfile<<"号码"<<no<<"名字"<<name<<"性别"<<sex<<"年龄"<<age<<"工资"<<salary<<endl;
}
void pay(){ salary=monthlypay;}
void print()
{
cout<<"├—————┼—————┼—————┼—————┼—————┤"<<endl;
cout<<"│"<<setw()<<no<<"│"<<setw()<<name<<"│"<<setw()<<sex\
<<"│"<<setw()<<age<<"│"<<setw()<<salary<<"│"<<endl;
}
};
class technician:virtual public employee
{
private:
float hourlyrate;
int workhours;
public:
technician(){ hourlyrate=;}
void pay()
{
cout<<name<<"本月工作时数:";
cin>>workhours;
salary=hourlyrate*workhours;
}
void input(){ cout<<"技术工"<<endl;employee::input();}
void save()
{
fstream outfile;
outfile.open("F:shuju.txt",ios::app);
if(!outfile)
{
cout<<"F can't open.\n";
abort();
}
outfile<<"技术工"<<endl;
outfile<<"号码"<<no<<"名字"<<name<<"性别"<<sex<<"年龄"<<age<<"工资"<<salary<<endl;
}
void print()
{
cout<<"├—————┼—————┼—————┼—————┼—————┤"<<endl;
cout<<"│"<<setw()<<no<<"│"<<setw()<<name<< "│"<<setw()<<sex\
<<"│"<<setw()<<age<<"│"<<setw()<<salary<<"│"<<endl;
}
};
class salesman:virtual public employee
{
protected:
float commrate;
float sales;
public:
salesman(){ commrate=0.;}
void input(){ cout<<"销售员";employee::input();}
void save()
{
fstream outfile;
outfile.open("F:shuju.txt",ios::app);
if(!outfile)
{
cout<<"f can't open.\n";
abort();
}
outfile<<"技术工"<<endl;
outfile<<"号码"<<no<<"名字"<<name<<"性别"<<sex<<"年龄"<<age<<"工资"<<salary<<endl;
}
void pay()
{
cout<<name<<"本月销售额:";
cin>>sales;
salary=sales*commrate;
}
void print()
{
cout<<"├—————┼—————┼—————┼—————┼—————┤"<<endl;
cout<<"│"<<setw()<<no<<"│"<<setw()<<name<<"│"<<setw()\
<<sex<<"│"<<setw()<<age<<"│"<<setw()<<salary<<"│"<<endl;
}
};
class salesmanager:virtual public manager,virtual public salesman
{
private:
float total;int no1,no2,no3,no4;char name1[8],name2[8],name3[8],name4[8];
float sale1,sale2,sale3,sale4;
public:
int flag;
void salemanager()
{
monthlypay=;
commrate=0.;
}
void input(){ cout<<"销售经理";employee::input();}
void save()
{
fstream outfile;
outfile.open("F:shuju.txt",ios::app);
if(!outfile)
{
cout<<"f can't open.\n";
abort();
}
outfile<<"销售经理"<<endl;
outfile<<"号码"<<no<<"名字"<<name<<"性别"<<sex<<"年龄"<<age<<"工资"<<salary<<endl;
}
void savesale()
{
fstream outfile;
outfile.open("F:shuju.txt",ios::app);
if(!outfile)
{
cout<<"F can't open.\n";
abort();
}
outfile<<"销售经理所辖售员业绩及自己的工资"<<endl;
outfile<<"编号"<<no1<<"名字"<<name1<<"工资"<<sale1<<endl;
outfile<<"编号"<<no2<<"名字"<<name2<<"工资"<<sale2<<endl;
outfile<<"编号"<<no3<<"名字"<<name3<<"工资"<<sale3<<endl;
outfile<<"编号"<<no4<<"名字"<<name4<<"工资"<<sale4<<endl;
}
int min(float salary1,float salary2)
{
if(salary1<salary2)
return 1;
else return 2;
}
void pay()
{
salemanager();
salary=monthlypay+commrate*totalsale();
}
float totalsale()
{ total=sale1+sale2+sale3+sale4;return total;}
void printtotal()
{
cout<<"├—————┴——┬——┴—————┤"<<endl;
cout<<"│销售额合计 │ "<<setw()<<total<<" │"<<endl;
cout<<"└————————┴————————┘"<<endl;
}
void sort(salesmanager &p)
{
int tmp,i,j;
for(j=0;j<2;j++)
for(i=0;i<2;i++)
if(total<p.salary)
{
tmp=salary;
total=p.salary;
p.salary=tmp;
tmp=no;
no=p.no;
p.no=tmp;
}
}
void saler()
{
cout<<name<<"所管部门月销售量:";
cout<<"职工编号:";
cin>>no1;
cout<<" 职工姓名:";
cin>>name1;
cout<<" 销售额:";
cin>>sale1;
cout<<"职工编号:";
cin>>no2;
cout<<" 职工姓名:";
cin>>name2;
cout<<" 销售额:";
cin>>sale2;
cout<<"职工编号:";
cin>>no3;
cout<<" 职工姓名:";
cin>>name3;
cout<<" 销售额:";
cin>>sale3;
cout<<"职工编号:";
cin>>no4;
cout<<" 职工姓名:";
cin>>name4;
cout<<" 销售额:";
cin>>sale4;
}
void saleprint()
{
cout<<"│"<<setw()<<no1<<"│"<<setw()<<name1<<"│"<<setw()<<sale1<<"│"<<endl;
cout<<"├—————┼—————┼—————┤"<<endl;
cout<<"│"<<setw()<<no2<<"│"<<setw()<<name2<<"│"<<setw()<<sale2<<"│"<<endl;
cout<<"├—————┼—————┼—————┤"<<endl;
cout<<"│"<<setw()<<no3<<"│"<<setw()<<name3<<"│"<<setw()<<sale3<<"│"<<endl;
cout<<"├—————┼—————┼—————┤"<<endl;
cout<<"│"<<setw()<<no4<<"│"<<setw()<<name4<<"│"<<setw()<<sale4<<"│"<<endl;
}
void print()
{
cout<<"├—————┼—————┼—————┼—————┼—————┤"<<endl;
cout<<"│"<<setw()<<no<<"│"<<setw()<<name<<"│"<<setw()<<sex<<"│"
<<setw()<<age<<"│"<<setw()<<salary<<"│"<<endl;
}
};
void main()
{
manager m[4];
technician t[4];
salesman s[4];
salesmanager sm[4];
t[1].save();
int flag=1,operate,minnum=0;
do{
cout<<" ★★小型公司工资管理系统★★\n";
cout<<" ┌—————————————┐\n";
cout<<" │ 请选择您所需的操作 │\n";
cout<<" │ 数据输入:1,并按回车键 │\n";
cout<<" │ 数据统计:2,并按回车键 │\n";
cout<<" │ 数据打印:3,并按回车键 │\n";
cout<<" │ 数据备份:4,并按回车键 │\n";
cout<<" │ 退出系统:5,并按回车键 │\n";
cout<<" └—————————————┘\n";
cout<<" 请选择一个操作: ";
cin>>operate;
switch(operate)
{
case 1:
cout<<"please waiting........"<<endl;
{
for(int i=0;i<4;i++)
{ m[i].input();}
for(int j=0;j<4;j++)
{ t[j].input();}
for(int k=0;k<4;k++)
{ s[k].input();}
for(int l=0;l<4;l++)
{ sm[l].input();}
}
{
for(int i=0;i<4;i++)
{ m[i].pay();}
for(int j=0;j<4;j++)
{ t[j].pay();}
for(int k=0;k<4;k++)
{ s[k].pay();}
for(int l=0;l<4;l++)
{ sm[l].saler();sm[l].pay();}
};break;
case 2:
cout<<"please waiting......."<<endl;
{
{
for(int l=0;l<4;l++)
sm[l].totalsale();
};
cout<<" 第一位经理的销售员"<<endl;
cout<<"┌—————┬—————┬——————┐"<<endl;
cout<<"│ 职工号 │ 姓名 │ 销售额 │"<<endl;
sm[0].saleprint();
sm[0].printtotal();
cout<<" 排序已经完成"<<endl;
cout<<"各销售经理的排名"<<endl;
cout<<"┌—————┬—————┬—————┬—————┬———————┐"<<endl;
cout<<"│ 职工号 │ 姓名 │ 性别 │ 年龄 │ 工资 │"<<endl;
for(int i=0;i<4;i++)
{
minnum=0;
for(int ddd=0;ddd<4;ddd++)
{
if(sm[minnum].salary>sm[ddd].salary&&sm[ddd].flag!=1)
{
minnum=ddd;
}
}
sm[minnum].flag=1;
sm[minnum].print();
}
cout<<"└—————┴—————┴—————┴—————┴———————┘"<<endl;
};break;
case 3:
cout<<"please waiting........"<<endl;
{
cout<<"