第十七天升级版
来源:互联网 发布:减员增效人员优化方案 编辑:程序博客网 时间:2024/04/29 20:15
#include<stdio.h>#include<stdlib.h>struct XueSheng{char mingZi[99];int chengJi;};int main(){int i;struct XueSheng zuoYe[5];for(i=0;i<5;++i){scanf("%s %d",&zuoYe[i].mingZi,&zuoYe[i].chengJi);}for(i=0;i<5;++i){printf("%s %d",zuoYe[i].mingZi,zuoYe[i].chengJi);}}参考:
#include <stdio.h> struct date { int year; int month; int day;}; struct student{ int id; char name[10]; char sex[10]; struct date birthday;}; int main() { int i; struct student stu[5]; for(i=0; i<5; i++){ printf("输入第%d个学生学号,姓名,性别,生日\n", i + 1); scanf("%d %s %s %d %d %d", &stu[i].id, stu[i].name, stu[i].sex, &stu[i].birthday.year, &stu[i].birthday.month, &stu[i].birthday.day); } printf("输出第3个学生的信息:\n"); printf("%d, %s, %s, %d, %d, %d", stu[3].id, stu[3].name, stu[3].sex, stu[3].birthday.year, stu[3].birthday.month, stu[3].birthday.day); return 0;}
0 0
- 第十七天升级版
- 第十七天
- 第十七天
- 第十七天
- 第十七天
- 第十七天
- 世界杯第十七天
- 第十七天 文档
- 第十七天:听课笔记
- 第十七天:总结
- 第十七天总结0412
- 星海第十七天
- 实习日记->第十七天
- 第十七天博客
- 第十七天:IO流
- 第十七天:sql入门
- php实战第十七天
- 20131224-第十七天
- Java Mail(二):JavaMail介绍及发送一封简单邮件
- 词法作用域
- 使用pyenv和virtualenv搭建python虚拟环境实践总结
- JavaScript写的几种排序算法
- 总结
- 第十七天升级版
- Tensorflow1.0+ubuntu14.04+GPU安装
- android系统的更新之比较时间方法的获取时间
- 内存解析(static,stack,heap,const char,code segment)
- spring-security
- 客户的sample和项目计划
- Linux学习之——文件搜索命令
- 1095. Cars on Campus (30) PAT 甲级
- 【转】webpack学习笔记