52-结构体的最简单应用
2014-01-20 10:54
176 查看
/* 结构体的初级运用 */ #include "stdio.h" #include "conio.h" //定义一个结构体,并且声明一个结构体变量student1 struct Student{ //学生的编号 int id; //年龄 int age; }student1; main() { //对student的成员变量进行赋值 student1.id=1; student1.age=22; //输出student的成员变量值 printf("学生的编号是:%d\n学生的年龄是:%d",student1.id,student1.age); getch(); }
相关文章推荐
- 基于结构体的混合类型简单应用
- 指向结构体变量的指针的简单应用
- 简单结构体的应用(商品排序C语言)
- Linux中ifreq 结构体分析和使用 及其在项目中的简单应用
- 学生成绩简单统计-结构体的应用-浙大第三周作业
- Linux中ifreq 结构体分析和使用 及其在项目中的简单应用
- C语言结构体简单应用范例
- Linux中ifreq 结构体分析和使用 及其在项目中的简单应用
- vector与结构体结合的简单应用
- 结构体——结构体简单应用
- 结构体数组的超简单应用
- 结构体的简单应用HDU4584
- 贪心基础题-----结构体简单应用
- 结构体的简单应用
- Directx11教程(52) 实例(instancing)的简单应用
- 关于树面板TreePanel的简单应用
- 函数 指针 结构体的综合应用
- io中的字节转成字符的4个简单应用
- xpath简单应用
- nanocontainer-struts 的简单应用