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

C / C++ / MFC

 
QuestionDateDiff in C++ Pin
rweworld20-Sep-07 6:23
rweworld20-Sep-07 6:23 
AnswerRe: DateDiff in C++ Pin
nbugalia20-Sep-07 6:44
nbugalia20-Sep-07 6:44 
AnswerRe: DateDiff in C++ Pin
bob1697220-Sep-07 9:23
bob1697220-Sep-07 9:23 
Questionmergesort and insertion sort problem.. Pin
makaveli_0720-Sep-07 6:00
makaveli_0720-Sep-07 6:00 
AnswerRe: mergesort and insertion sort problem.. Pin
Iain Clarke, Warrior Programmer20-Sep-07 6:40
Iain Clarke, Warrior Programmer20-Sep-07 6:40 
GeneralRe: mergesort and insertion sort problem.. Pin
makaveli_0720-Sep-07 7:04
makaveli_0720-Sep-07 7:04 
AnswerRe: mergesort and insertion sort problem.. Pin
David Crow20-Sep-07 10:33
David Crow20-Sep-07 10:33 
AnswerRe: mergesort and insertion sort problem.. Pin
John R. Shaw20-Sep-07 21:17
John R. Shaw20-Sep-07 21:17 
I recommend finding a copy of “Algorithms in C” by Robert Sedgewick, usually easier to understand than Knuth’s books, or just search the Web.

You have a lot to learn, passing the size of a global array makes no sense because it will lead to errors; if the array is global then the variable, or “#define” statement, telling you the size, should also be global.

Simplify: Start small by writing code that does not require external files, say a few arrays of integers. That way any good debugger will show you what is happening (single stepping). Then work your way up, one step at a time. Believe it or not, but that is how a lot of us solve these types of problems.


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

QuestionHow to change color of STATIC control in MFC ? Pin
Yanshof20-Sep-07 4:34
Yanshof20-Sep-07 4:34 
AnswerRe: How to change color of STATIC control in MFC ? Pin
Maximilien20-Sep-07 4:51
Maximilien20-Sep-07 4:51 
AnswerRe: How to change color of STATIC control in MFC ? Pin
jhwurmbach20-Sep-07 4:54
jhwurmbach20-Sep-07 4:54 
AnswerRe: How to change color of STATIC control in MFC ? Pin
Mark Salsbery20-Sep-07 6:08
Mark Salsbery20-Sep-07 6:08 
QuestionHow can i throw event from ATL Composite control to some dialog ? Pin
Yanshof20-Sep-07 4:33
Yanshof20-Sep-07 4:33 
AnswerRe: How can i throw event from ATL Composite control to some dialog ? Pin
Nathan Holt at EMOM20-Sep-07 9:21
Nathan Holt at EMOM20-Sep-07 9:21 
QuestionHow to create file in this program and make it generate Pin
snoop8220-Sep-07 3:29
snoop8220-Sep-07 3:29 
AnswerRe: How to create file in this program and make it generate Pin
toxcct20-Sep-07 3:38
toxcct20-Sep-07 3:38 
QuestionCurioisity Pin
Nelek20-Sep-07 4:18
protectorNelek20-Sep-07 4:18 
AnswerRe: Curioisity Pin
toxcct20-Sep-07 6:47
toxcct20-Sep-07 6:47 
AnswerRe: How to create file in this program and make it generate Pin
Programm3r20-Sep-07 3:40
Programm3r20-Sep-07 3:40 
GeneralRe: How to create file in this program and make it generate Pin
snoop8220-Sep-07 4:17
snoop8220-Sep-07 4:17 
GeneralRe: How to create file in this program and make it generate Pin
Nelek20-Sep-07 4:19
protectorNelek20-Sep-07 4:19 
GeneralRe: How to create file in this program and make it generate Pin
toxcct20-Sep-07 4:25
toxcct20-Sep-07 4:25 
QuestionGetDC() returning NULL handle in MFC Pin
Dhiraj kumar Saini20-Sep-07 3:28
Dhiraj kumar Saini20-Sep-07 3:28 
QuestionRe: GetDC() returning NULL handle in MFC Pin
Hamid_RT20-Sep-07 4:14
Hamid_RT20-Sep-07 4:14 
AnswerRe: GetDC() returning NULL handle in MFC Pin
Mark Salsbery20-Sep-07 6:22
Mark Salsbery20-Sep-07 6:22 

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.