摘要:
int years = 2001; struct thing { char *ptr; int m; }; thing amabob = {"wodget", 12}; // valid intialization Stock hot = {"Sukie's Autosm, Inc.", 200, 阅读全文
posted @ 2021-02-12 20:24
GaoLee
阅读(160)
评论(0)
推荐(0)
摘要:
结构体是用户定义的类型,而结构声明定义了这种类型的数据属性。 1 struct inflatable // structure declaration 2 { 3 char name[20]; 4 float volume; 5 double price; 6 }; 关键字 struct 表明,这些 阅读全文
posted @ 2021-02-12 19:50
GaoLee
阅读(354)
评论(0)
推荐(0)

浙公网安备 33010602011771号