Hi,I'm using VC++6.0
#include
#include
..
template
class QueueArray
{
public:
....
T Dequeue();
private:
vector > > vecQue;
...
};
template
T QueueArray:equeue()
{
...
T item;
item= vecQue.back();
vecQue.pop();
return item;
}
the line of
vecQue.pop();
doesn't compile and the error message is:
'pop_front' : is not a member of 'queueSince in the library of queue,there is
void pop()
{c.pop_front(); }
However,the push() and back() work.
I'm just confused.queue:op() is supposed to be a ready-made member function,isn't it?
Thanks for any explanation or help.
#include
#include
..
template
class QueueArray
{
public:
....
T Dequeue();
private:
vector > > vecQue;
...
};
template
T QueueArray:equeue()
{
...
T item;
item= vecQue.back();
vecQue.pop();
return item;
}
the line of
vecQue.pop();
doesn't compile and the error message is:
'pop_front' : is not a member of 'queueSince in the library of queue,there is
void pop()
{c.pop_front(); }
However,the push() and back() work.
I'm just confused.queue:op() is supposed to be a ready-made member function,isn't it?
Thanks for any explanation or help.