Click here to Skip to main content
15,905,420 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Determining how an EXE was started Pin
Saurabh.Garg1-Jul-08 22:14
Saurabh.Garg1-Jul-08 22:14 
GeneralRe: Determining how an EXE was started Pin
Harirajan1-Jul-08 22:18
Harirajan1-Jul-08 22:18 
QuestionHow to capture pen draw area Pin
cigogo1-Jul-08 18:03
cigogo1-Jul-08 18:03 
AnswerRe: How to capture pen draw area Pin
sashoalm1-Jul-08 20:13
sashoalm1-Jul-08 20:13 
QuestionInteresting quiz [modified] Pin
LiYS1-Jul-08 15:32
LiYS1-Jul-08 15:32 
AnswerRe: Interesting quiz Pin
Stephen Hewitt1-Jul-08 15:54
Stephen Hewitt1-Jul-08 15:54 
GeneralRe: Interesting quiz Pin
LiYS1-Jul-08 16:54
LiYS1-Jul-08 16:54 
AnswerRe: Interesting quiz Pin
Luc Pattyn1-Jul-08 16:26
sitebuilderLuc Pattyn1-Jul-08 16:26 
Hi,

why store the occurence count in an array, instead store the first position using two special
values, say -1 for never seen yet, and -2 for seen multiple times.
you would have to traverse your array to initialize it, traverse the string once, then traverse
the array again to find the lowest value >=0.

BTW IMO this belongs in the algo forum, not the C++ one.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


AnswerRe: Interesting quiz Pin
Stephen Hewitt1-Jul-08 17:29
Stephen Hewitt1-Jul-08 17:29 
AnswerRe: Interesting quiz Pin
David Crow2-Jul-08 5:35
David Crow2-Jul-08 5:35 
AnswerRe: Interesting quiz Pin
Iain Clarke, Warrior Programmer3-Jul-08 0:00
Iain Clarke, Warrior Programmer3-Jul-08 0:00 
QuestionDialog Box Variable Pin
bkelly131-Jul-08 12:22
bkelly131-Jul-08 12:22 
AnswerRe: Dialog Box Variable Pin
Saurabh.Garg1-Jul-08 15:04
Saurabh.Garg1-Jul-08 15:04 
GeneralRe: Dialog Box Variable Pin
bkelly131-Jul-08 15:21
bkelly131-Jul-08 15:21 
GeneralRe: Dialog Box Variable Pin
Saurabh.Garg1-Jul-08 16:32
Saurabh.Garg1-Jul-08 16:32 
GeneralRe: Dialog Box Variable Pin
cp98761-Jul-08 17:02
cp98761-Jul-08 17:02 
QuestionRe: Dialog Box Variable Pin
David Crow2-Jul-08 5:39
David Crow2-Jul-08 5:39 
AnswerRe: Dialog Box Variable Pin
bkelly133-Jul-08 15:03
bkelly133-Jul-08 15:03 
QuestionRe: Dialog Box Variable Pin
David Crow4-Jul-08 5:37
David Crow4-Jul-08 5:37 
AnswerRe: Dialog Box Variable Pin
bkelly134-Jul-08 5:51
bkelly134-Jul-08 5:51 
GeneralRe: Dialog Box Variable Pin
David Crow4-Jul-08 9:23
David Crow4-Jul-08 9:23 
AnswerRe: Dialog Box Variable Pin
cp98761-Jul-08 15:33
cp98761-Jul-08 15:33 
AnswerRe: Dialog Box Variable Pin
Nelek3-Jul-08 21:54
protectorNelek3-Jul-08 21:54 
GeneralRe: Dialog Box Variable Pin
bkelly134-Jul-08 4:19
bkelly134-Jul-08 4:19 
QuestionA class method definition in a header file... just one problem. Pin
Tomasz Morawski1-Jul-08 11:33
Tomasz Morawski1-Jul-08 11:33 

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.