《学生信息任务管理系统程序》由会员分享,可在线阅读,更多相关《学生信息任务管理系统程序(35页珍藏版)》请在金锄头文库上搜索。
1、#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 I
2、NITSIZE=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(“ *_*_*_*_*_*_*_*_*_*_*_*_*_*
3、_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_
4、* 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
5、 his/her messages! n“ Have a good time! now you can come in! n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_
6、*_*_*_*_* n“ 注意:系统启动码为 : ILOVEMYSCHOOLVERYMUCH ! n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*n“
7、*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“); getch(); return OK; int ThankMessage(void) printf(“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
8、n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ “ Thank you for your coming to our system! n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ We
9、lcome to use our system again! n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ Goodbye! n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ Producer:Slimsimmy n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_
10、*_*_*_*_*_*_* n“ Time:2007.3.22 n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“ *_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* n“); getch(); retur
11、n 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 字符!
12、)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
13、(); 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 请输入该学生备注(全文不得超过