Click here to Skip to main content
15,898,945 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MDI Problem!!!!!!!! Pin
MFC is the Best25-Sep-02 5:11
MFC is the Best25-Sep-02 5:11 
GeneralGeting a Controls ID from a HWND. Pin
Jawache25-Sep-02 4:38
Jawache25-Sep-02 4:38 
GeneralRe: Geting a Controls ID from a HWND. Pin
User 665825-Sep-02 4:54
User 665825-Sep-02 4:54 
GeneralRe: Geting a Controls ID from a HWND. Pin
Jawache25-Sep-02 5:08
Jawache25-Sep-02 5:08 
GeneralRe: Geting a Controls ID from a HWND. Pin
valikac25-Sep-02 10:58
valikac25-Sep-02 10:58 
GeneralSTL advice required Pin
User 988525-Sep-02 4:23
User 988525-Sep-02 4:23 
GeneralRe: STL advice required Pin
TyMatthews25-Sep-02 4:34
TyMatthews25-Sep-02 4:34 
GeneralRe: STL advice required Pin
User 988525-Sep-02 4:41
User 988525-Sep-02 4:41 
In most situations, the insert will occur at the end, because it is a sequence of objects sorted on time - but I could get an out-of sequence object once in a while, which should be inserted in between.

The container will grow in time, chances of shrinking is 0.

I was thinking about vector. Then I do a compare with the last item and if it is supposed to be at the end, then i push back. If it requires to be inserted somewhere else I push_back and call a sort. I get indexed access to the list

If I use set, I will have automatic sorting. But, then how do i get indexed access? Forwading an iterator?.

Thomas



modified 29-Aug-18 21:01pm.

GeneralRe: STL advice required Pin
Lanny Thompson25-Sep-02 4:53
Lanny Thompson25-Sep-02 4:53 
GeneralRe: STL advice required Pin
User 988525-Sep-02 5:04
User 988525-Sep-02 5:04 
GeneralRe: STL advice required Pin
Lanny Thompson25-Sep-02 5:25
Lanny Thompson25-Sep-02 5:25 
GeneralRe: STL advice required Pin
TyMatthews25-Sep-02 6:43
TyMatthews25-Sep-02 6:43 
GeneralRe: STL advice required Pin
Tomasz Sowinski25-Sep-02 5:34
Tomasz Sowinski25-Sep-02 5:34 
GeneralRe: STL advice required Pin
User 988525-Sep-02 5:52
User 988525-Sep-02 5:52 
GeneralRe: STL advice required Pin
Todd Smith25-Sep-02 7:02
Todd Smith25-Sep-02 7:02 
GeneralRe: STL advice required Pin
User 988525-Sep-02 8:06
User 988525-Sep-02 8:06 
GeneralRe: STL advice required Pin
Joaquín M López Muñoz26-Sep-02 9:00
Joaquín M López Muñoz26-Sep-02 9:00 
GeneralInclusion of C file Pin
RuiSantiago25-Sep-02 4:18
RuiSantiago25-Sep-02 4:18 
GeneralRe: Inclusion of C file Pin
Carlos Antollini25-Sep-02 4:23
Carlos Antollini25-Sep-02 4:23 
GeneralRe: Inclusion of C file Pin
Lanny Thompson25-Sep-02 4:29
Lanny Thompson25-Sep-02 4:29 
GeneralRe: Inclusion of C file Pin
SteveKing25-Sep-02 4:29
SteveKing25-Sep-02 4:29 
GeneralRe: Inclusion of C file Pin
RuiSantiago25-Sep-02 4:38
RuiSantiago25-Sep-02 4:38 
GeneralVC++ 6.0 problem : *.pch,*.obj ... I havent so much space for all... Pin
Wizard_0125-Sep-02 4:12
Wizard_0125-Sep-02 4:12 
GeneralRe: VC++ 6.0 problem : *.pch,*.obj ... I havent so much space for all... Pin
Carlos Antollini25-Sep-02 4:21
Carlos Antollini25-Sep-02 4:21 
GeneralRe: VC++ 6.0 problem : *.pch,*.obj ... I havent so much space for all... Pin
Wizard_0125-Sep-02 4:21
Wizard_0125-Sep-02 4:21 

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.