资源简介
课程信息管理系统 C语言版本 C语言课程设计
课程信息管理系统 C语言版本 C语言课程设计
代码片段和文件信息
#include
#include
struct link
{
char cno[10]cname[10]cforecourse[10]cunitno[10]cunitname[10];
int ia;
struct link *next;
};
struct link *head;
int menu()
{
int ii;
printf(“please choose a number:\n“);
printf(“******************************************:\n“);
printf(“1: create :\n“);
printf(“2: search :\n“);
printf(“3: delete :\n“);
printf(“4: view :\n“);
printf(“5: quit :\n“);
printf(“******************************************:\n“);
printf(“\n“);
printf(“\n“);
printf(“\n“);
printf(“\n“);
scanf(“%d“&ii);
return ii;
}
struct link create()
{
int icountij=1;
struct link *p*new;
while(1)
{
if(icount)
{
printf(“输入头结点“);
}
new=(struct link *)malloc(sizeof(struct link));
printf(“input the course no:\n“);
scanf(“%s“new->cno);
printf(“input the course :\n“);
scanf(“%s“new->cname);
printf(“input the forecourse :\n“);
scanf(“%s“new->cforecourse);
printf(“input the course grade:\n“);
scanf(“%d“&new->ia);
printf(“input the unit no. grade:\n“);
scanf(“%s“new->cunitno);
printf(“input the unit name:\n“);
scanf(“%s“new->cunitname);
new->next=NULL;
if(icount)
{
head=new;
p=new;
printf(“the fist add success:\n“);
getchar();
getchar();
icount=0;
}
else
{
p->next=new;
printf(“\n“);
p=p->next;
printf(“add success:\n“);
printf(“\n“);
getchar();
}
printf(“input 0 to end input:\n“);
scanf(“%d“&ij);
if(ij==0)
{
break
- 上一篇:蓝噪声采样代码
- 下一篇:oracle 游标 深入浅出 详解 精析
相关资源
- 小波变换算法 c语言版
- 学校超市选址问题(数据结构C语言版
- 数据结构,迷宫问题C语言版源代码
- C语言版3D魔方游戏源代码
- DSDEMO-C演示(数据结构C语言版 严蔚敏
- 烟花优化算法(c语言版)
- 数据结构(C语言版)ppt课件,清华,
- 连连看源代码C语言版
- 数据结构C语言版教学笔记严蔚敏
- 数据结构C语言版期末考试试题(有答
- (严版C语言版数据结构源码.rar
- C语言版经纬度与高斯投影相互转换函
- 数据结构C语言版第二版严蔚敏-课后答
- 数据结构 C语言版 第2版 严蔚敏 李冬
- 学生成绩管理系统 (C语言版)课程设
- 各种加密算法C语言版
- MPI与OpenMP并行程序设计:C语言版
- 数据结构c语言版第2版课后习题答案
- 学校教材订购系统,C语言版,内容详
- C语言版俄罗斯方块基于EASYX库
- MFC邮件发送程序(C语言版带界面)
- 公园的导游图C语言版
- 数据结构(C语言版)第2版习题答案—
- 数据结构C语言版PPT 清华大学出版社
- Windows下基于ModbusTcp的Server端开发C语言
- 严蔚敏数据结构C语言版视频教程之总
- 密码学:分组密码DES算法C语言版
- 学生管理系统C语言版
- 数据结构基础(C语言版) 习题答案
- 数据结构c语言版本严蔚敏清华大学
评论
共有 条评论