资源预览内容
第1页 / 共35页
第2页 / 共35页
第3页 / 共35页
第4页 / 共35页
第5页 / 共35页
第6页 / 共35页
第7页 / 共35页
第8页 / 共35页
第9页 / 共35页
第10页 / 共35页
亲,该文档总共35页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
#include #include #include #include #include #include #include #include #define OK 1 #define TRUE 1 #define FALSE 0 #define SystemExit 1 #define ERROR 0 #define MAXSIZE 512 #define INIT_SIZE 50 #define INIT_INCREASE 10 #define INCREASEMENT 100 #define Number 10 int NUMBER=0; int MESSAGESIZE=0; int INITSIZE=0; int I=0; int J=0; int NUM=0;char PASSWORD30=“ILOVEMYSCHOOLVERYMUCH“;typedef struct Student char namearray30; char numberarray30; enum sax man,woman; char sax10; int age; char messageMAXSIZE; Student;Student *start; Student *head;int WelcomeMessage(void)printf(“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ “ Welcome to come to our system! n“ You can only inquire your own messages! If you want to see about other n“ students messages,you need first to send inquirment to them,asking for n“ agreement,then you can visit his/her messages! n“ Have a good time! now you can come in! n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ 注意:系统启动码为 : ILOVEMYSCHOOLVERYMUCH ! n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“); getch(); return OK; int ThankMessage(void) printf(“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ “ Thank you for your coming to our system! n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ Welcome to use our system again! n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ Goodbye! n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ Producer:Slimsimmy n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ Time:2007.3.22 n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“); getch(); return OK; int WarningSystem(void) int ExitCrackInError(void); int CryptographicSmartCards(void); if(:NUM=:MESSAGESIZE) start=(Student *)realloc(start,MESSAGESIZE+INIT_INCREASE); :MESSAGESIZE+=INIT_INCREASE; printf(“n 请输入该学生姓名(不得超过 30 字符!)n“); scanf(“%s“,start:I.namearray); printf(“n 请输入该学生学号(不得超过 30 字符!)n“); scanf(“%s“,start:I.numberarray); printf(“n 请输入该学生性别(%s or %s!)n“,“man“,“woman“); scanf(“%s“,start:I.sax); printf(“n 请输入该学生年龄(周岁制!)n“); scanf(“%d“, printf(“n 请输入该学生备注(全文不得超过 512 字节!)n“); scanf(“%s“,start:I.message); fp=fopen(“学生基本信息任务管理文件.txt“,“a+“); fwrite( fclose(fp); +:NUMBER; +:I; c=getchar(); else EnterReturn(); else printf(“ Do you want to enter another students message?n“ 1:Yes! n“ 2:No! n“n“); scanf(“%d“, if(m=1) if(:I=:MESSAGESIZE) start=(Student *)realloc(start,MESSAGESIZE+INIT_INCREASE); :MESSAGESIZE+=INIT_INCREASE; printf(“n 请输入该学生姓名(不得超过 30 字符!)n“);scanf(“%s“,start:I.namearray); printf(“n 请输入该学生学号(不得超过 30 字符!)n“); scanf(“%s“,start:I.numberarray); printf(“n 请输入该学生性别(%s or %s!)n“,“man“,“woman“); scanf(“%s“,start:I.sax); printf(“n 请输入该学生年龄(周岁制!)n“); scanf(“%d“, printf(“n 请输入该学生备注(全文不得超过
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号