why dont u send the program to me as an attachment to my mail id
A coupe of reasons
a. Rashakil Fol's post
b. it takes in total 3 lines of code
value = myList.front();
myList.pop_front();
myList.push_back(value);
you should prolly check to see that the list isn't empty first and of corse make the list and varible value , you can then use value, If your doing this in muliple parts of your program.
Its prolly advisable to make a function to do this for you, How far you want to go with this is upto you ( make a template if you will so it can take any type of varible and spit out a value.
If it is infact for an assignment and they havent told you to use any of the standard template libary, they may infact not want you to and if that is the case I would try the following.
1. Create a Linked list
Use an object or a struct ( what ever takes your fancy ) with a varible containing the data and a pointer to another struct of the same type.
Now if your doing a round robin kinda algorithem you may want the lists to be in a nice loop, so insted of having a start and an end you don't.
then make some kinda way of remembing where you are in the list (another pointer to a element) and then change that when you access a value
imLookingHere = imLookingHere->nextInList;
or what not.
then you just have to worry about attaching things in etc. anyway check out some reasources on the web
STL Lists
STL List
SGI's nice doco
cprogramming's tutorial
Linked Lists
Nice C++ Linked List
Wikipedia artical on Linked Lists