- 3
- 0
- 约1.83万字
- 约 31页
- 2016-11-25 发布于湖北
- 举报
第9章
例9.1
#includestdio.h
int main()
{
struct Student
{
long int num;
char name[20];
char sex;
char addr[20];
}a={10101,Li Lin,M,123 Beijing Road};
printf(No.%ld\nname:%s\nsex:%c\naddress:%s\n,a.num,a.name,a.sex,a.addr);
return 0;
}
例9.2
#includestdio.h
int main()
{
struct Student
{
int num;
char name[20];
float score;
}student1,student2;
scanf(%d%s%f,student1.num,student1.name,student1.score);
scanf(%d%s%f,student2.num,student2.name,student2.score);
printf(The higher score is :\n);
if(student1.scorestudent2.score)
printf(%d %s %6.2f\n,student1.num,student1.name,stud
您可能关注的文档
最近下载
- 五一劳动节主题班会 6.ppt VIP
- 中华民族共同体概论讲稿专家版《中华民族共同体概论》大讲堂之 第八讲 供奉中国与中华民族内聚发展(辽宋夏金时期).doc VIP
- DGJ08-2143-2021 公共建筑绿色设计标准(2024局部修订).docx VIP
- 天津一中高二下期末试卷(数学).pdf VIP
- ABB Manual - NGC8206 French (Rev AB) 手册(英语)说明书.pdf
- 河南中国移动ai面试题库及答案.doc
- 《思政元素融入初中生物课程中的探索与实践》.docx VIP
- 2026年事业单位会计题库及答案.docx
- 2025年《中华民族共同体概论》-第十四讲 新中国与中华民族的新纪元(1949—2012)-专家大讲堂讲义.docx VIP
- 300立方米柴油储罐设计.docx VIP
原创力文档

文档评论(0)