2021-02-01
C++结构体用法
struct为结构体关键字,tag为结构体标签,member_list即为所需要的成员的类型以及名称,variable_list即为结构体变量名
struct tag
{
member_list;
}variable_list;
示例
struct node
{
int age;
string name;
} student1, student2;
*********************
struct node
{
int age;
string name;
};
no
原创
2021-02-05 13:50:16 ·
76 阅读 ·
0 评论