队列
struct Node
{
int x,y;
};
queue<Node> que;
struct Node p;
que.pop()
que.push({x,y})
p = que.front()
p = que.back()
if(!que.empty()) //不为空
int s = que.size()
结构体
//定义
struct Student
{
int number,age;//int型学号和年龄
char name[20],sex;//char类型姓名和性别
float score;
};
//定义变量
struct Student stu;
//定义
typedef struct Student
{
int number,age;//int型学号和年龄
char name[20],sex;//char类型姓名和性别
float score;
}STU;
//定义变量
STU stu;
//定义
struct Student
{
int number,age;//int型学号和年龄
char name[20],sex;//char类型姓名和性别
float score;
}stu[20];
//相当于struct Student stu[20];