0

My professor has given me the code and I wanna run it. I use Visual Studio2008. Code contains data structure "queue". He defines one queue as "queue<int> Q;"

But my compiler gives an error and says "error C2065: 'queue' : undeclared identifier"

Do we need any separate header file to run this? Or what's wrong?

-Thanks,
Sam

3
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by Fbody
0

Does this code use the STL queue (looks like it) or a custom-written one?

Either way, it sounds like you are either missing a header, or you haven't resolved your namespace properly.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.