Thread: Sorting Help
View Single Post
Old 10-16-2005, 04:09 AM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,720
redhead is on a distinguished road
From your example it looks like you just want to shift the bottom four names above all others, without paying attention to them beeing sortet at all, is that correct ??
Then just use something like a std::queue to store them in, and pop() size()-4 times followed by push()
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote