C语言项目实战篇 C语言基础入门教程 C语言程序设计教程 第16章 学生基本信息录入模块的开发 共32页.pptxVIP

  • 5
  • 0
  • 约2.16千字
  • 约 33页
  • 2022-08-20 发布于浙江
  • 举报

C语言项目实战篇 C语言基础入门教程 C语言程序设计教程 第16章 学生基本信息录入模块的开发 共32页.pptx

C语言项目实战篇;第16章 学生基本信息录入模块的开发 ;本章目录;16.1 任务说明;16.2 任务分析;16.3 任务实施;struct student {   int number; char name[ 20 ]; float chinese; float math; float english; }; # define N 10 main( ) {struct student stud [N];; int i=0; float score; printf(“请输入学生信息(学号为0时结束):\n”); for(;iN;i++) {fflush(stdin); printf(“学号:”); scanf(”%d”,stud [i].number); printf(“姓名:”); scanf(”%s”, stud [i].name);; printf(“语文成绩:”); scanf(”%f”, score); stud [i].chinese=score; printf(“数学成绩:”); scanf(”%f”, score); stud [i].math=score; printf(“英语成绩:”); scanf(”%f”, score); stud [i].english=score; } } ;16.4 知识点详解; 结构

文档评论(0)

1亿VIP精品文档

相关文档