全文预览

课程设计用c++设计一个排课程序

上传者:非学无以广才 |  格式:doc  |  页数:26 |  大小:0KB

文档介绍
intm);voidinput_course(course*c,intm);voidinput_num(int**num,intn,intm);voidarranging(int**num,teacher*t,course*c,arrange*a,intn,intm);voidprint(teacher*t,course*c,arrange*a,intm);voidprint_help();voidprint_teacher();voidprint_course();voidprint_num();voidchange(int**num,teacher*t,course*c,arrange*a,intn,intm);voidchange_teacher(teacher*t,intn);voidchange_course(course*c,intm);voidchange_num(teacher*t,course*c,int**num,intn,intm);voidmain(){inti,n,m;cout<<"==========================教师排课系统==========================="<<endl;cout<<"教师人数:";cin>>n;cout<<"课程数:";cin>>m;int**num=newint*[n];for(i=0;i<n;++i){num[i]=newint[m];}teacher*t;course*c;arrange*a;t=newteacher[n];c=newcourse[m];a=newarrange[m];if(t==NULL||c==NULL||a==NULL){cout<<"内存分配失败"<<endl;return}cout<<"1.输入教师基本数据\n";cout<<"2.输入课程基本数据\n";

收藏

分享

举报
下载此文档