程序代码
#include
#include
#include
#include
#define LEN sizeof(struct student)
struct student
{
char xh[13+1];
char xm[20+1];
char szbj[10+1];
char xb[2+1];
char sjhm[11+1];
char zz[30+1];
char bz[20+1];
struct student *next;
};
void face(void)
{
printf("\n");
printf("\t\t\t 1.-新建or更改记录-\n");
printf("\t\t\t 2.----查询记录----\n");
printf("\t\t\t 3.----删除记录----\n");
printf("\t\t\t 4.---保存并退出---\n");
printf("\t\t\t 5.-----退出-------\n");
printf("\t\t\t by someone \n");
printf("\n");
}
void print(struct student *head)
{
struct student *p;
p=head;
system("CLS");
if(head!=NULL)
do
{
printf("学号:%s\n",p->xh);
printf("姓名:%s\n",p->xm);