C++ , FIFO

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

C++ , FIFO

Postby ynnaD » Tue Jul 26, 11 3:58 pm

Anyone here who is in the know about C++? Need some help here.

I've made a program that has 3 linked lists operating as stacks, but i was wondering how to go about changing them to FIFO (First In, First Out) instead, if you havn't a clue what i'm talking about just say! If anyone knows how i could do this, lemme know and ill show you the code i've made.

Ta!
~þsÿçhø~ wrote:My laptops screen is broke, how can i fix it?

James wrote:THROW DARK SOULS AT IT
User avatar
ynnaD
Forum Legend
 
Posts: 6461
Joined: Thu Nov 11, 04 8:43 pm
Location: Ireland

Postby ~ô¿ô~Nobody~ » Fri Jul 29, 11 9:23 am

If you're using the linked lists from the standard template library, there exist push and pop functions for the begin and the end of the list.
..something like push_front, push_back, pop_front, pop_back.

If you are accessing that lists over multiple threads, the list access operations should be synchronized or the program might crash randomly.
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 9 guests
cron