Ⅰ 給一個職工信息管理系統用C++編寫通過VC6.0編譯
int main()
{
loop:
cout<<"***************************************\n";
cout<<" 學生信息管理系統 \n";
cout<<" 1 - 錄入學生信息 \n";
cout<<" 2 - 查找學生信息 \n";
cout<<" 3 - 修改學生信息 \n";
cout<<" 4 - 刪除學生信息 \n";
cout<<" 0 - 退出 \n";
cout<<"***************************************\n";
不是可視化的。。可以吧。。我把代碼發到你郵箱吧。。記得加分喔!
不過你要小修改。。
Ⅱ C語言課程設計之公司員工信息管理系統怎麼做
c語言編的學生信息管理系統小程序 參考吧
<stdio.h>
#include <stdlib.h>
#include <string.h>
struct st
{
char name[20];
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[20];
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;
}
Ⅲ 使用Java語言編寫程序,輸出某公司員工的基本信息
public class Test0 {
public static void main(String[] args) {
Employee ZhangSan = new Employee("001", "張三", '男', "銷售部", 6000, 1000, "普通員工");
Employee LiSi = new Employee("002", "李四", '女', "人事部", 7000, 2000, "超級員工");
System.out.println(ZhangSan.toString()); //列印張三信息
System.out.println(LiSi.toString()); //列印李四信息
}
}
class Employee{
private String id; //員工ID
private String name; //姓名
private char sex; //性別
private String department; //部門
private int basic_salary; //基本工資
private int extra_salary; //薪金
private String classify; //類別
/**
* 構造方法
*/
public Employee(String id, String name, char sex, String department,
int basic_salary, int extra_salary, String classify) {
this.id = id;
this.name = name;
this.sex = sex;
this.department = department;
this.basic_salary = basic_salary;
this.extra_salary = extra_salary;
this.classify = classify;
}
public Employee(){
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public char getSex() {
return sex;
}
public void setSex(char sex) {
this.sex = sex;
}
public String getDepartment() {
return department;
}
public void setDepartment(String department) {
this.department = department;
}
public int getBasic_salary() {
return basic_salary;
}
public void setBasic_salary(int basic_salary) {
this.basic_salary = basic_salary;
}
public int getExtra_salary() {
return extra_salary;
}
public void setExtra_salary(int extra_salary) {
this.extra_salary = extra_salary;
}
public String getClassify() {
return classify;
}
public void setClassify(String classify) {
this.classify = classify;
}
public String toString(){
String str ="[員工ID:"+id+"|姓名:"+name+"|性別:"+sex+
"|部門:"+department+"|基本工資:+"+basic_salary+
"|薪金:"+extra_salary+"|類別:"+classify+"]";
return str;
}
}
Ⅳ 用c語言編譯一個管理員工信息的程序!
在編輯器上就可以直接編譯吧
Ⅳ 在excel中如何根據員工編號,快速獲取員工信息
用vlookup公式
Ⅵ 如何快速收集員工信息
如果想用來收集員工信息,發布一個反饋/填表接龍分享到微信群或朋友圈就可以,接龍里可包含通知內容和具體收集的信息項目,
微信小程序「接龍管家」就可以實現這個目的。
1.發布接龍時在標題和內容處填寫通知內容,在下面的信息項目根據實際情況來添加部門等多項信息。
截圖、文本、視頻、語音、附件均可以收集,視頻資料可以長期保存
可以自定義收集起止時間,支持每日打卡收集
可以按照名單查看截圖上傳情況, 一目瞭然
收集內容可以設置可見性,比如只允許發起人或本群查看
收集的附件可以打包導出,文件名支持按姓名排列、
2.在模板中心有海量模板,適合多種使用場景,可自定選擇按需修改使用。
3.收集的信息可以一鍵導出Excel/附件表,方便後期整理上報。
希望對您有幫助~
Ⅶ 如何高效將員工信息庫製作成員工個人信息卡片
可以用weord的標簽功能,可以一次性生成所有原公的信息。您可以試一下,很方便簡單的……