STL list based queue
Posted on 2003-03-30
I have a big problem.. I am using VC++ 6.0 copyright 94-98 Microsoft corporation..
There is some bug in my compiler that prevents me to finish my project. What i am trying to so is to create a STL linked list-based queue..Here i created a sample program. I belive that if i make it working on this one it will work on the other one..This program will work on any other compiler but not on mine. I can't switch the compiler because i am in middle of another much bigger project. The only one thing i can think about is to upgrade or repair my own compiler. Unfortunately, i could not find anything on Internet to make it working..
using namespace std;
queue<int, list<int> > myQueue(myList);
cout << myQueue.front() << endl;
cout << "\n";
//The program must output :
I appreciate any help..
Thanks in advance..