2008年計算機二級考試C語言輔導:C語言做的一個學生選課系統(tǒng)

字號:

考試大用C做的一個簡易的學生選課系統(tǒng).是1道程序實踐考試題,大家多多提意見!
    #include
    #include
    int N1,N2,kk1,kk2,kk3;
    struct couse * head1;
    struct student * head2;
    struct couse//課程信息結構體
    {
    int num1;
    char name1[20];
    int score;
    int nelepeo;//課程已選人數(shù)
    int Melepeo;//課程人數(shù)上限
    struct couse * next;
    };
    struct student//學生信息結構體
    {
    int num2;
    char name2[20];
    int nelenum[50];//已選課程編號
    int nelen;//已選課程數(shù)量
    struct student * next;
    };
    void Ms()
    {
    for(kk1=0;kk1 <1100;kk1++)
    for(kk2=0;kk2 <1200;kk2++)
    for(kk3=0;kk3 <1200;kk3++);
    }