#include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include <string.h>
typedef struct worker
{
int id;
char name[20];
char sex[3];
int age;
char edu[50];
int wages;
char adr[255];
char phone[13];
}WORKER, *PWORKER;
//typedef struct WORKER *PWORKER;
typedef struct link
{
WORKER w;
struct link *next;
}LINK, *PLINK;
//typedef struct LINK *PLINK;
/*创建职工信息链表*/
PLINK create()
{
PLINK p=(PLINK)malloc(sizeof(LINK));
if(NULL!=p)
{
p->next=NULL;
return p;
}
printf("内存不足!");
return NULL;
}
/*显示程序界面文字*/
void message()
{ system("color 0f");/*设置当前窗口的背景色和前景色*/
/* 0 = 黑色 8 = 灰色
1 = 蓝色 9 = 淡蓝色
2 = 绿色 A = 淡绿色