结构体

Run Settings
LanguageC
Language Version
Run Command
#include <stdio.h> //struct person zhangshan; /* 声明一个结构体变量 zhangshan */ struct person1 { char name[20]; int age; char email[50]; } lisi, wangwu, *zhaoliu; /* 声明一个结构体变量 和指向 person 结构的指针 zhaoliu */ // 初始化 struct person1 zhangsan2 = {"zhang san", 24, "zs@163.com"}; // 初始化结构变量 zhangshan2 // 结构体定义,结构体变量声明,初始化放在一起 struct person3 { char name[20]; int age; char email[50]; } zhangsan3 = {"zhang san", 24, "zs@163.com"}, *pzs = &zhangsan3; int main(void) { printf("Hello World!\n"); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines