Click here to Skip to main content
16,018,460 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What's wrong.... Pin
Eytukan11-Jan-07 2:14
Eytukan11-Jan-07 2:14 
GeneralRe: What's wrong.... Pin
Rajesh R Subramanian11-Jan-07 2:25
professionalRajesh R Subramanian11-Jan-07 2:25 
GeneralRe: What's wrong.... Pin
Eytukan11-Jan-07 2:34
Eytukan11-Jan-07 2:34 
GeneralRe: What's wrong.... Pin
John R. Shaw11-Jan-07 14:54
John R. Shaw11-Jan-07 14:54 
GeneralRe: What's wrong.... Pin
Eytukan11-Jan-07 19:36
Eytukan11-Jan-07 19:36 
GeneralRe: What's wrong.... Pin
Hamid Taebi11-Jan-07 20:57
professionalHamid Taebi11-Jan-07 20:57 
GeneralRe: What's wrong.... Pin
Astricks12-Jan-07 0:04
Astricks12-Jan-07 0:04 
AnswerRe: What's wrong.... Pin
neilsolent11-Jan-07 2:12
neilsolent11-Jan-07 2:12 
In these lines:

if (j-1 > 0 && i+1 <=5 )
{ if (A[i][j] < A[i+1][j-])


"i" can be as large as 4. Which means elements A[5][j] are being accessed - but the declaration was int A[5][5] - i.e. the maximum element is A[4][j]

So array out of bounds ..




cheers,
Neil

QuestionSocket Programming Pin
SrikanthVinayak Ram11-Jan-07 1:48
SrikanthVinayak Ram11-Jan-07 1:48 
AnswerRe: Socket Programming Pin
Mark Salsbery11-Jan-07 5:13
Mark Salsbery11-Jan-07 5:13 
AnswerRe: Socket Programming Pin
David Leyva11-Jan-07 10:31
David Leyva11-Jan-07 10:31 
QuestionRe: Socket Programming Pin
SrikanthVinayak Ram11-Jan-07 18:40
SrikanthVinayak Ram11-Jan-07 18:40 
AnswerRe: Socket Programming Pin
Mark Salsbery12-Jan-07 6:37
Mark Salsbery12-Jan-07 6:37 
AnswerRe: Socket Programming Pin
Mark Salsbery12-Jan-07 6:39
Mark Salsbery12-Jan-07 6:39 
QuestionCDateTimeCtrl ideal size Pin
Watz11-Jan-07 1:02
Watz11-Jan-07 1:02 
QuestionSimplest way to display data in table form Pin
ldsdbomber11-Jan-07 0:33
ldsdbomber11-Jan-07 0:33 
AnswerRe: Simplest way to display data in table form Pin
Rage11-Jan-07 1:17
professionalRage11-Jan-07 1:17 
GeneralRe: Simplest way to display data in table form Pin
ldsdbomber11-Jan-07 1:38
ldsdbomber11-Jan-07 1:38 
QuestionHow to add rich edit control ?? Pin
Suresh H11-Jan-07 0:10
Suresh H11-Jan-07 0:10 
AnswerRe: How to add rich edit control ?? Pin
prasad_som11-Jan-07 0:25
prasad_som11-Jan-07 0:25 
GeneralRe: How to add rich edit control ?? Pin
Suresh H11-Jan-07 0:45
Suresh H11-Jan-07 0:45 
AnswerRe: How to add rich edit control ?? Pin
prasad_som11-Jan-07 1:08
prasad_som11-Jan-07 1:08 
GeneralRe: How to add rich edit control ?? Pin
Suresh H11-Jan-07 1:22
Suresh H11-Jan-07 1:22 
AnswerRe: How to add rich edit control ?? Pin
prasad_som11-Jan-07 1:26
prasad_som11-Jan-07 1:26 
GeneralRe: How to add rich edit control ?? Pin
Suresh H11-Jan-07 1:43
Suresh H11-Jan-07 1:43 

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.