阅读背景:

52-结构体的最简单应用_高调做事,低调做人!

来源:互联网 
/* 结构体的初级运用 
*/
#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();
}/* 结构体的初级运用 
*/
#include "stdio.h"
#include "co



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: