Click here to Skip to main content
15,894,017 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with multiple bouncing balls program in C Pin
Jochen Arndt19-Jan-18 2:56
professionalJochen Arndt19-Jan-18 2:56 
AnswerRe: Problem with multiple bouncing balls program in C Pin
Victor Nijegorodov19-Jan-18 21:21
Victor Nijegorodov19-Jan-18 21:21 
AnswerRe: Problem with multiple bouncing balls program in C Pin
Rick York24-Jan-18 7:17
mveRick York24-Jan-18 7:17 
Questionconvert feet and inches to centimeters Pin
nithiin_sai18-Jan-18 14:42
nithiin_sai18-Jan-18 14:42 
SuggestionRe: convert feet and inches to centimeters Pin
Jim Meadors18-Jan-18 15:49
Jim Meadors18-Jan-18 15:49 
AnswerRe: convert feet and inches to centimeters Pin
Victor Nijegorodov18-Jan-18 20:38
Victor Nijegorodov18-Jan-18 20:38 
AnswerRe: convert feet and inches to centimeters Pin
CPallini18-Jan-18 21:47
mveCPallini18-Jan-18 21:47 
AnswerRe: convert feet and inches to centimeters Pin
David Crow19-Jan-18 3:16
David Crow19-Jan-18 3:16 
QuestionStart app without taskbar icon Pin
_Flaviu17-Jan-18 1:56
_Flaviu17-Jan-18 1:56 
AnswerRe: Start app without taskbar icon Pin
Richard MacCutchan17-Jan-18 2:11
mveRichard MacCutchan17-Jan-18 2:11 
AnswerRe: Start app without taskbar icon Pin
Jochen Arndt17-Jan-18 2:20
professionalJochen Arndt17-Jan-18 2:20 
GeneralRe: Start app without taskbar icon Pin
_Flaviu18-Jan-18 1:09
_Flaviu18-Jan-18 1:09 
GeneralRe: Start app without taskbar icon Pin
leon de boer18-Jan-18 1:40
leon de boer18-Jan-18 1:40 
GeneralRe: Start app without taskbar icon Pin
Jochen Arndt18-Jan-18 2:07
professionalJochen Arndt18-Jan-18 2:07 
QuestionTo make an interacting user game on *Tower of hanoi* . Pin
Tarun Jha14-Jan-18 23:58
Tarun Jha14-Jan-18 23:58 
AnswerRe: To make an interacting user game on *Tower of hanoi* . Pin
Jochen Arndt15-Jan-18 0:33
professionalJochen Arndt15-Jan-18 0:33 
If you got compiler errors and warnings, inspect them or add them to your question so that we know them. They contain the line number where the error occured. Inspect that line and the previous one(s) (some errors are sourced on previous lines and detected later). Read the error message. If you do not understand them, do some web research first.

However, there is one big beginner's mistake in your code:
The size of the arrays and the access to the array elements. With C/C++, arrays are accessed by zero based indexes. So the allowed indexes for a size of three are 0, 1, and 2. But your code uses also the index 3. As a result, your code will never work as expected or even crash.

So change the array sizes to
int m[4], r[4], l[4];
before handling any other errors.
GeneralRe: To make an interacting user game on *Tower of hanoi* . Pin
Tarun Jha15-Jan-18 1:01
Tarun Jha15-Jan-18 1:01 
GeneralRe: To make an interacting user game on *Tower of hanoi* . Pin
Jochen Arndt15-Jan-18 1:11
professionalJochen Arndt15-Jan-18 1:11 
AnswerRe: To make an interacting user game on *Tower of hanoi* . Pin
Richard MacCutchan15-Jan-18 1:06
mveRichard MacCutchan15-Jan-18 1:06 
GeneralRe: To make an interacting user game on *Tower of hanoi* . Pin
Tarun Jha15-Jan-18 1:21
Tarun Jha15-Jan-18 1:21 
GeneralRe: To make an interacting user game on *Tower of hanoi* . Pin
David Crow15-Jan-18 2:42
David Crow15-Jan-18 2:42 
GeneralRe: To make an interacting user game on *Tower of hanoi* . Pin
Richard MacCutchan15-Jan-18 5:00
mveRichard MacCutchan15-Jan-18 5:00 
QuestionSort digits of number Pin
Anonygeeker14-Jan-18 22:41
Anonygeeker14-Jan-18 22:41 
AnswerRe: Sort digits of number Pin
CPallini14-Jan-18 23:00
mveCPallini14-Jan-18 23:00 
AnswerRe: Sort digits of number Pin
Richard MacCutchan14-Jan-18 23:06
mveRichard MacCutchan14-Jan-18 23:06 

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.