简单的人事管理系统(程序错在哪里)

来源:百度知道 编辑:UC知道 时间:2024/05/29 08:41:51
#include <stdio.h>
#include <string.h>
#define M 80
struct ofw
{
char name[8];
char sex;
int age;
float wag;
};
struct ofw ofwo[M];
int cou;
void add();
void mod();
void del();
void sho();
main()
{
int i;
struct ofw tem;
cou=0;
int x=33,y=7;
char xx;
while(1)
{
clrscr();
gotoxy(x,y);
puts("公司人事管理系统");
gotoxy(x,y+2);
puts("1.输入新增员工");
gotoxy(x,y+3);
puts("2.修改变动员工");
gotoxy(x,y+4);
puts("3.删去辞退员工");
gotoxy(x,y+5);
puts("4.显示所有员工");
gotoxy(x,y+6);
puts("退出系统");
gotoxy(x,y+8);
puts("请选译(1,2,3,4,5):");
xx=getch();
switch(xx);
{
case '1' :clrscr();
printf("请输入姓名:");
scanf("%s",tem.name);
printf("请输入性别:");

#include <stdio.h>
#include <string.h>
#define M 80
struct ofw
{
char name[8];
char sex;
int age;
float wag;
};
struct ofw ofwo[M];
int cou;
void add();
void mod();
void del();
void sho();
main()
{
int i;
struct ofw tem;
int x=33;
int y=7;
char xx,ch;
cou=0;
while(1)
{
clrscr();
gotoxy(x,y);
puts("公司人事管理系统");
gotoxy(x,y+2);
puts("1.输入新增员工");
gotoxy(x,y+3);
puts("2.修改变动员工");
gotoxy(x,y+4);
puts("3.删去辞退员工");
gotoxy(x,y+5);
puts("4.显示所有员工");
gotoxy(x,y+6);
puts("5.退出系统");
gotoxy(x,y+8);
puts("请选译(1,2,3,4,5):");
gotoxy(x+18,y+8);
xx=getch();
switch(xx)
{
case '1' :clrscr();
printf("请输入姓名:");
scanf("%s",tem.name);