考試大用C做的一個簡易的學(xué)生選課系統(tǒng).是1道程序?qū)嵺`考試題,大家多多提意見!
#include
#include
int N1,N2,kk1,kk2,kk3;
struct couse * head1;
struct student * head2;
struct couse//課程信息結(jié)構(gòu)體
{
int num1;
char name1[20];
int score;
int nelepeo;//課程已選人數(shù)
int Melepeo;//課程人數(shù)上限
struct couse * next;
};
struct student//學(xué)生信息結(jié)構(gòu)體
{
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++);
}
#include
#include
int N1,N2,kk1,kk2,kk3;
struct couse * head1;
struct student * head2;
struct couse//課程信息結(jié)構(gòu)體
{
int num1;
char name1[20];
int score;
int nelepeo;//課程已選人數(shù)
int Melepeo;//課程人數(shù)上限
struct couse * next;
};
struct student//學(xué)生信息結(jié)構(gòu)體
{
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++);
}