Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRegister ocx in Windows7 Pin
Max++8-May-11 14:06
Max++8-May-11 14:06 
AnswerRe: Register ocx in Windows7 Pin
Richard Andrew x648-May-11 14:20
professionalRichard Andrew x648-May-11 14:20 
AnswerRe: Register ocx in Windows7 Pin
pandit848-May-11 21:10
pandit848-May-11 21:10 
AnswerRe: Register ocx in Windows7 Pin
Malli_S9-May-11 0:41
Malli_S9-May-11 0:41 
AnswerRe: Register ocx in Windows7 Pin
Max++9-May-11 15:12
Max++9-May-11 15:12 
Question"Ending program ... please wait" - what system message needs a response ? Pin
Still learning how to code8-May-11 8:56
Still learning how to code8-May-11 8:56 
AnswerRe: "Ending program ... please wait" - what system message needs a response ? Pin
Code-o-mat8-May-11 9:28
Code-o-mat8-May-11 9:28 
AnswerRe: "Ending program ... please wait" - what system message needs a response ? Pin
Luc Pattyn8-May-11 9:45
sitebuilderLuc Pattyn8-May-11 9:45 
GeneralRe: "Ending program ... please wait" - what system message needs a response ? Pin
Still learning how to code8-May-11 11:16
Still learning how to code8-May-11 11:16 
Questionapplication messaging Pin
Krauze7-May-11 22:20
Krauze7-May-11 22:20 
AnswerRe: application messaging Pin
Richard MacCutchan7-May-11 23:33
mveRichard MacCutchan7-May-11 23:33 
GeneralRe: application messaging Pin
barneyman7-May-11 23:51
barneyman7-May-11 23:51 
GeneralRe: application messaging Pin
Richard MacCutchan8-May-11 0:08
mveRichard MacCutchan8-May-11 0:08 
QuestionRe: application messaging Pin
David Crow9-May-11 3:16
David Crow9-May-11 3:16 
AnswerRe: application messaging Pin
barneyman9-May-11 3:39
barneyman9-May-11 3:39 
GeneralRe: application messaging Pin
Code-o-mat8-May-11 9:35
Code-o-mat8-May-11 9:35 
Questionlzma on GPU Pin
crotaphiticus7-May-11 20:12
crotaphiticus7-May-11 20:12 
AnswerRe: lzma on GPU Pin
Code-o-mat8-May-11 6:22
Code-o-mat8-May-11 6:22 
GeneralRe: lzma on GPU Pin
crotaphiticus8-May-11 7:54
crotaphiticus8-May-11 7:54 
GeneralRe: lzma on GPU Pin
Code-o-mat8-May-11 9:39
Code-o-mat8-May-11 9:39 
GeneralRe: lzma on GPU Pin
crotaphiticus8-May-11 12:33
crotaphiticus8-May-11 12:33 
Questionabout multi linked list Pin
quartaela7-May-11 9:44
quartaela7-May-11 9:44 
AnswerRe: about multi linked list Pin
Luc Pattyn7-May-11 10:26
sitebuilderLuc Pattyn7-May-11 10:26 
GeneralRe: about multi linked list Pin
quartaela7-May-11 11:09
quartaela7-May-11 11:09 
GeneralRe: about multi linked list Pin
barneyman7-May-11 15:53
barneyman7-May-11 15:53 
i agree with Luc

i'd do it the following way to get it done quickly

1. Maintain a naturally ordered list of all the items
2. Have an ordered list each for surname and firstname; these lists simply reference the index into the ordered list

Adding is cheap, iterating is cheap, finding is cheap (b-chop), removal is 'difficult'

Add - add item to back of natural order list, qsort the item index into each of the ordered lists
Remove - find the item in either sorted list, mark the item in the ordered list as dead - you can't delete it or you'll ruin the indices

ie
Natural Order (includes ALL item data)
Sarah Connor
Jack Black
Pete Jones
Stan Smith

Surname Order (just index into Natural Order)
1
0
2
3

Firstname Order (just index into Natural Order)
2
1
0
3

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.