typedef struct text
{
int index;
bool flag;
}Text_Stu;
QQueue<Text_Stu> q;
Text_Stu stu;
stu.index = 1;
stu.flag = false;
q.enqueue(stu);
qDebug() << q.head().index;
可得到打印值为1。
typedef struct text
{
int index;
bool flag;
}Text_Stu;
QQueue<Text_Stu> q;
Text_Stu stu;
stu.index = 1;
stu.flag = false;
q.enqueue(stu);
qDebug() << q.head().index;
可得到打印值为1。