高校教材管理系统C语言代码.docxVIP

  • 2
  • 0
  • 约1.73千字
  • 约 4页
  • 2024-05-18 发布于浙江
  • 举报

高校教材管理系统C语言代码

高校教材管理系统是为了帮助学校更好地管理和分发教材资源而设计的系统。下面是一个基于C语言的高校教材管理系统的代码示例:

```c

#includestdio.h

#includestdlib.h

#includestring.h

//定义教材结构体

structTextbook{

chartitle[50];

charauthor[50];

intyear;

floatprice;

};

//定义教材管理系统

structTextbooktextbooks[100];

intcount=0;

//添加教材信息

voidaddTextbook(){

structTextbooknew_textbook;

printf(请输入教材名称:);

scanf(%s,new_textbook.title);

printf(请输入教材作者:);

scanf(%s,new_textbook.author);

printf(请输入教材出版年份:);

scanf(%d,new_textbook.year);

printf(请输入教材价格:);

scanf(%f,new_textbook.price);

te

文档评论(0)

1亿VIP精品文档

相关文档