C语言结构体初始化

首先定义一个结构体:web struct init_member { int first; double second; char* third; float four; }; 1、定义时赋值 struct init_member test = {-10, 3.141590, "method one", 0.25}; 须要注意对应的顺序,不能错位。svg 二:定义后
相关文章
相关标签/搜索