怎么将数组压入队列?
  • 板块灌水区
  • 楼主stylus
  • 当前回复0
  • 已保存回复0
  • 发布时间2024/4/5 16:03
  • 上次更新2024/4/5 18:53:08
查看原帖
怎么将数组压入队列?
836448
stylus楼主2024/4/5 16:03

我的想法:

#include<bits/stdc++.h>
using namespace std;
struct node{string s;int f[2][4];};
int a[2][4];
int main(){
	//…
	q.push({/*h.s+char(65+i)不用管*/,a});
	//…
	return 0;
}

But 它会这样:

[Error] no matching function for call to 'std::queue<node>::push(<brace-enclosed initializer list>)'

求解

2024/4/5 16:03
加载中...