由于结构体类似于类,只是类里面的变量有public存在,而结构体里面只有private;
新建结构体
typedef struct s_student
{
CString name;
int age;
s_student
{
name="xiaoming";
age=12;
}
}student;
由于结构体类似于类,只是类里面的变量有public存在,而结构体里面只有private;
新建结构体
typedef struct s_student
{
CString name;
int age;
s_student
{
name="xiaoming";
age=12;
}
}student;