定义
struct main_widgets
{
int first;
double second;
float third;
char * four;
};
方法一:定义时赋值
struct s_main_widgets test = {
-10, 3.14,0.25,
定义
struct main_widgets
{
int first;
double second;
float third;
char * four;
};
方法一:定义时赋值
struct s_main_widgets test = {
-10, 3.14,0.25,