Click here to Skip to main content
16,006,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: stack overflow Pin
#realJSOP19-Jun-07 3:41
professional#realJSOP19-Jun-07 3:41 
AnswerRe: stack overflow Pin
Nemanja Trifunovic18-Jun-07 6:52
Nemanja Trifunovic18-Jun-07 6:52 
GeneralRe: stack overflow Pin
Cyrilix18-Jun-07 7:16
Cyrilix18-Jun-07 7:16 
QuestionNeed to check if a process is active or not. Pin
Arish rivlin18-Jun-07 6:12
Arish rivlin18-Jun-07 6:12 
AnswerRe: Need to check if a process is active or not. Pin
Mark Salsbery18-Jun-07 6:27
Mark Salsbery18-Jun-07 6:27 
GeneralRe: Need to check if a process is active or not. Pin
Arish rivlin18-Jun-07 6:43
Arish rivlin18-Jun-07 6:43 
QuestionDistinct values in 2D char array... Pin
Adeel Chaudhry18-Jun-07 6:10
Adeel Chaudhry18-Jun-07 6:10 
AnswerRe: Distinct values in 2D char array... Pin
Cyrilix18-Jun-07 7:03
Cyrilix18-Jun-07 7:03 
What is the range of your values? If it's not a huge range (more than 0-1000000), you can use a bucket sort technique, which is to basically initialize an array of bools of size 1000000, and set all initial values to false (I'm not sure what values they default to). Then, iterate through all the data in your 2D array and for each value, check if the bool array entry corresponding to the value is true. If it is, then you know you have duplicate values. If it's false, then set the bool array entry to true, so next time, it will detect a duplicate value.

Example: If the current iteration of your 2D array gives you a value of 5, you set boolArray[5] = true.

If you wish to count the values, then you can use an int array instead of a bool array and just increment as you go.
AnswerRe: Distinct values in 2D char array... Pin
Mark Salsbery18-Jun-07 7:34
Mark Salsbery18-Jun-07 7:34 
QuestionCombo box control does not display data list? Pin
dkyue9270818-Jun-07 5:24
dkyue9270818-Jun-07 5:24 
AnswerRe: Combo box control does not display data list? Pin
led mike18-Jun-07 5:38
led mike18-Jun-07 5:38 
GeneralRe: Combo box control does not display data list? Pin
dkyue9270818-Jun-07 5:46
dkyue9270818-Jun-07 5:46 
GeneralRe: Combo box control does not display data list? Pin
led mike18-Jun-07 7:07
led mike18-Jun-07 7:07 
GeneralRe: Combo box control does not display data list? Pin
dkyue9270818-Jun-07 7:25
dkyue9270818-Jun-07 7:25 
GeneralRe: Combo box control does not display data list? Pin
led mike19-Jun-07 5:12
led mike19-Jun-07 5:12 
AnswerRe: Combo box control does not display data list? Pin
JudyL_MD18-Jun-07 7:04
JudyL_MD18-Jun-07 7:04 
GeneralRe: Combo box control does not display data list? Pin
dkyue9270818-Jun-07 7:41
dkyue9270818-Jun-07 7:41 
AnswerRe: Combo box control does not display data list? Pin
David Crow18-Jun-07 8:37
David Crow18-Jun-07 8:37 
GeneralRe: Combo box control does not display data list? Pin
dkyue9270818-Jun-07 9:45
dkyue9270818-Jun-07 9:45 
GeneralRe: Combo box control does not display data list? Pin
David Crow18-Jun-07 9:52
David Crow18-Jun-07 9:52 
AnswerRe: Combo box control does not display data list? Pin
Iain Clarke, Warrior Programmer19-Jun-07 1:14
Iain Clarke, Warrior Programmer19-Jun-07 1:14 
GeneralRe: Combo box control does not display data list? Pin
dkyue9270819-Jun-07 5:11
dkyue9270819-Jun-07 5:11 
QuestionClient/Server doubt Pin
Demian Panello18-Jun-07 4:31
Demian Panello18-Jun-07 4:31 
AnswerRe: Client/Server doubt Pin
Mark Salsbery18-Jun-07 5:22
Mark Salsbery18-Jun-07 5:22 
GeneralRe: Client/Server doubt Pin
led mike18-Jun-07 5:34
led mike18-Jun-07 5:34 

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.