- 5
- 0
- 约2.25万字
- 约 141页
- 2023-12-01 发布于陕西
- 举报
引例(cont’d-改用指向结构体变量的指针作形参) #include stdio.h #include string.h #define N 10 struct student {int num; char name[20]; float score[3];}; int main() { int i,j; struct student stu[N]; void print(struct student *stu); for (i=0;iN;i++) {scanf(%d%s,stu[i].num,stu[i].name); for (j=0;j3;j++) scanf(%f,stu[i].score[j]); print(stu[i]);}} void print(struct student *stu) {printf(%d %s %f %f %f\n,stu-num, stu- name, stu- score[0], stu- score[1], stu- score[2]);} 引例(cont’d-改用指向结构体变量的指针作实参和形参) #include stdio.h #include string.h #define N 10 struct student {int num; char name[20]; fl
您可能关注的文档
最近下载
- 人教版八年级上册英语各单元作文范文汇编 (实用,必备!).docx VIP
- 【专家PPT】钢铁生产企业碳排放核算指南及核查要点.pdf
- 增设跨境电子商务专业的论证报告.docx VIP
- 2026年最新中级银行信贷风险控制真题及答案解析.docx
- 5eDnD_凡戴尔的失落矿坑_模组_中译(二校).pdf VIP
- (高清版)DBJ∕T 13-318-2025 《建筑施工盘扣式钢管脚手架安全技术标准》.pdf VIP
- 2024—2025学年湖南省长沙市长郡中学高二上学期第一次月考化学试卷.doc VIP
- 新22S6 消防工程图集 .docx VIP
- 湖南省长沙市长郡中学2024-2025学年高二上学期第一次月考英语试题.docx VIP
- 交管12123驾照学法减分题库200题(含答案完整版).docx VIP
原创力文档

文档评论(0)