[摘要]学生成绩录入查询删除等c语言编程(国外英文资料) 5.3.1 # include < stdio, h > # include < string. H > # include < stdlib. H > # include < conio. H > The number of bytes of the (struct student) / * student structure is * / Define FORMAT (s) [I], stu [I].stu [I].stu [I]. [I] # define N 40 / * symbol constant: class number * / Float Fc, Fm, Fe; / * global variables: c-language scores, high scores, English grades * / Struct student / * defines student achievement structure * / { Int num. / * school number * / Char name [15]. / * name * / Double c; / * C language course results * / Double m; / * a high number of courses Double e; / * in English Double sum; / * total score * / } stu [N]. / * define the structure of the structure. * / Void (in); / * to enter student achievement information * / Void the show (); / * shows students' achievements * / Void the order (); / * in the aggregate order * / Void del (); / * deletes student achievement information * / Void the modify (); / * to modify student achievement information * / Void menu (); / * main menu * / Void total (); / * the total number of people is * / Void the search (); / * look for student information * / 5.3.2 Void menu () / * custom function implements menu function * / { System (" CLS "); / * clear screen function * / Printf (" \ n \ n \ n \ n \ n "); Printf (" \ t \ t | -- -- -- -- -| \ n "); Printf (" \ t \ t | \ t 1. "); Printf (" \ t \ t | \ t 2. Query the student achievement information | \ n "); Printf (" \ t \ t | \ t 3. Delete the student achievement information | \ n "); Printf (" \ t \ t | \ t 4. Modify the student achievement information | \ n "); Printf (" \ t \ t | \ t 5. The student grade is sorted | \ n "); Printf (" \ t \ t, | \ t 6. Statistics amount | \ n "); Printf (" \ t \ t | \ t 0. Exit | \ n "); Printf (" \ t \ t \ t | -- -- - | \ n \ n); Printf (" \ t \ t \ t, "(0-6) : } Void main ()/the main function * / { Int n; The menu (); Scanf (" % d ", & n); / * input selection function number * / While (n) { The switch
录入查询学生成绩C语言,学生成绩录入查询删除等c语言编程(国外英文资料).doc...
最新推荐文章于 2023-05-23 17:19:36 发布