1580 次
3 に答える
3
queue<job> CPUqueue[10], waitQueue[10];
This creates two arrays of 10 queues. It's probably not what you want.
Try :
queue<job> CPUqueue, waitQueue;
于 2012-12-05T20:01:03.347 に答える
0
You have an array of queues, rather than a queue and push does not work on arrays.
于 2012-12-05T19:58:29.767 に答える
0
in addition to @otibom's answer:
non-class type ‘std::queue<job> [10]’
means just that: waitQueue
is declared as an array. The objects in the array are queue
s, but the veriable isn't.
于 2012-12-05T20:04:02.620 に答える