Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionInserting an element into an ordered vector/list Pin
avimitrani16-Oct-06 7:53
avimitrani16-Oct-06 7:53 
AnswerRe: Inserting an element into an ordered vector/list Pin
Zac Howland16-Oct-06 7:59
Zac Howland16-Oct-06 7:59 
GeneralRe: Inserting an element into an ordered vector/list Pin
avimitrani16-Oct-06 8:25
avimitrani16-Oct-06 8:25 
GeneralRe: Inserting an element into an ordered vector/list Pin
Zac Howland16-Oct-06 8:43
Zac Howland16-Oct-06 8:43 
GeneralRe: Inserting an element into an ordered vector/list Pin
Stephen Hewitt16-Oct-06 13:42
Stephen Hewitt16-Oct-06 13:42 
AnswerRe: Inserting an element into an ordered vector/list Pin
Stephen Hewitt16-Oct-06 13:39
Stephen Hewitt16-Oct-06 13:39 
GeneralRe: Inserting an element into an ordered vector/list Pin
avimitrani16-Oct-06 23:55
avimitrani16-Oct-06 23:55 
AnswerRe: Inserting an element into an ordered vector/list Pin
jhwurmbach16-Oct-06 23:28
jhwurmbach16-Oct-06 23:28 
You often need to add or remove from the end?
You need it only occational but in time critical situations?
You do need the guarantee that your items are stored in adjacent places?
(Double-use of &vec[0] as a C-Array for example)

Then use the vector/lower_bound Stephen Hewitt proposed
If you only need a sorted storage, you would be better off with set/multiset.



"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

QuestionPlease help ASYNCSOCKET Pin
cgb14316-Oct-06 6:46
cgb14316-Oct-06 6:46 
AnswerRe: Please help ASYNCSOCKET Pin
Mark Salsbery16-Oct-06 7:38
Mark Salsbery16-Oct-06 7:38 
GeneralRe: Please help ASYNCSOCKET Pin
cgb14316-Oct-06 8:25
cgb14316-Oct-06 8:25 
GeneralRe: Please help ASYNCSOCKET Pin
Mark Salsbery16-Oct-06 8:34
Mark Salsbery16-Oct-06 8:34 
GeneralRe: Please help ASYNCSOCKET Pin
cgb14316-Oct-06 9:51
cgb14316-Oct-06 9:51 
GeneralRe: Please help ASYNCSOCKET Pin
Moak1-Nov-06 3:24
Moak1-Nov-06 3:24 
GeneralRe: Please help ASYNCSOCKET Pin
Mark Salsbery1-Nov-06 5:12
Mark Salsbery1-Nov-06 5:12 
GeneralRe: Please help ASYNCSOCKET Pin
Moak1-Nov-06 5:16
Moak1-Nov-06 5:16 
QuestionCreating a MPEG movie from set of images Pin
Hemant kulkarni16-Oct-06 4:36
Hemant kulkarni16-Oct-06 4:36 
AnswerRe: Creating a MPEG movie from set of images Pin
normanS16-Oct-06 9:55
normanS16-Oct-06 9:55 
AnswerRe: Creating a MPEG movie from set of images Pin
Mark Salsbery16-Oct-06 10:02
Mark Salsbery16-Oct-06 10:02 
GeneralRe: Creating a MPEG movie from set of images Pin
Hemant kulkarni16-Oct-06 20:25
Hemant kulkarni16-Oct-06 20:25 
GeneralRe: Creating a MPEG movie from set of images Pin
Mark Salsbery17-Oct-06 5:56
Mark Salsbery17-Oct-06 5:56 
AnswerRe: Creating a MPEG movie from set of images Pin
Hamid_RT17-Oct-06 7:38
Hamid_RT17-Oct-06 7:38 
Questionme again: How can I convert DATE into double correctly ? Pin
Checker200316-Oct-06 4:32
Checker200316-Oct-06 4:32 
AnswerRe: me again: How can I convert DATE into double correctly ? Pin
Cedric Moonen16-Oct-06 4:40
Cedric Moonen16-Oct-06 4:40 
AnswerRe: me again: How can I convert DATE into double correctly ? Pin
David Crow16-Oct-06 4:58
David Crow16-Oct-06 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.