Monthly Archives: 03月 2008

公布代码,需要的拿去用

帮别人做的作业,代码不长,冗余度高,而且幼稚,不到500行,不符合软件工程要求,面向过程,字符界面,没有注释,需要的拿去 传说中的白痴同学录,插入,删除,修改,查询,排序,保存,读取,模块划分清楚,随便改改就变成别的了。 #include<string.h>#include<stdlib.h>#include<conio.h>#include<stdio.h>void newm();void open();void ins();typedef struct SS S;struct SS{ long number; char address[50]; char name[20]; long zipCode; long tel; char email[50]; S *next;}; int built=0;S h;S *p=&h;S *q;int check(S *c){ S *qo; for(qo=&h;qo!=c;qo=qo->next) {  if(qo->number==c->number)  {   system("cls");   printf("Already have the same IDNumber.\n");   return (0);  } } return (1);} void show2(S *c){ printf("ID Number:%d \n",c->number); printf("Name:%s \n",c->name); printf("Address:%s\n",c->address); printf("ZipCode:%d \n",c->zipCode); printf("Tel:%d \n",c->tel); printf("E-mail:%s\n",c->email);}void ins(){ int … 繼續閱讀

发表在 未分类 | 2条评论