直接上样例

#include<bits/stdc++.h>
using namespace std;

struct node{
    int x, y;
};

queue<node> que;

int main(){
    node xx;
    xx.x = 1, xx.y = 2;
    que.push(xx);
    node yy = que.front();
    cout << yy.x << " " << yy.y;
    return 0;
}

相关文章:

  • 2022-01-31
  • 2021-08-06
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-29
  • 2022-12-23
  • 2021-08-05
  • 2022-01-27
  • 2022-12-23
  • 2021-12-05
  • 2021-04-16
相关资源
相似解决方案