Home > Back-end >  O bosses see program where I went wrong
O bosses see program where I went wrong

Time:09-18

#include
#include
# include & lt; String. H>//defines a variable type, a macro and various operating characters
Struct course//define structure course
{int num.
Char name [20].
Char kind [10]. Int time; Int ttime. Int etime. Int mark; Int term; }; Struct student {int snum; Int cnum; Char cname [20]. };/* course information input */void insert () {void main (); FILE *fp; Struct course c; int count; int i; If ((fp=fopen (" course. TXT ", "a +"))==NULL) {printf (" always? The open? The file \ n "); } printf (" \ n please enter course gate number: \ n "); The scanf (" % d ", & amp; The count); Printf (" course number course name nature total hours teaching period experiment or hours credit course semester: \ n "); for(i=0; I 5 | | n<0) {printf (" \ n input error! Please input again! \n"); The scanf (" % d ", & amp; n); } the else w=1; } while (w==0); The switch (n) {case 1: insert (); break; Case 2: browser (); break; Case 3: the search (); break; Case 4: xuanke_information (); break; Case 5: xuan_ke (); break; Case: 0 exit (0); } the return; }

CodePudding user response:

Typography is too messy, no one wants to see, Suggestions to improve the layout

CodePudding user response:

To what's wrong?

CodePudding user response:

Typesetting moving,,,
  • Related