14,664,021 members
Home » Discussions » C / C++ / MFC

# C / C++ / MFC

 Re: Script generation from Objects using C++ FrankStar8912-Nov-18 11:22 FrankStar89 12-Nov-18 11:22
 Games Member 140425973-Nov-18 5:24 Member 14042597 3-Nov-18 5:24
 Re: Games OriginalGriff3-Nov-18 5:27 OriginalGriff 3-Nov-18 5:27
 Re: Games CPallini4-Nov-18 21:50 CPallini 4-Nov-18 21:50
 Conways Game of life game in C Abhinav99933-Nov-18 1:27 Abhinav9993 3-Nov-18 1:27
 Re: Conways Game of life game in C Richard MacCutchan3-Nov-18 3:57 Richard MacCutchan 3-Nov-18 3:57
 Re: Conways Game of life game in C 元昊 潘3-Nov-18 4:04 元昊 潘 3-Nov-18 4:04
 Re: Conways Game of life game in C Victor Nijegorodov3-Nov-18 6:33 Victor Nijegorodov 3-Nov-18 6:33
 元昊 潘 wrote:When calculating the N array, the element of the boundary is overstepped by the Z array access as calculated by your algorithm in your compute function. ```for (i = 1; i <=6; i++) { for (j = 1; j <= 6; j++) { N[i][j]=Z[i-1][j-1]+Z[i][j-1]+Z[i+1][j-1] + Z[i-1][j] +Z[i+1][j]+ Z[i-1][j+1] +Z[i][j+1]+Z[i+1][j+1]; } }``` Yes. And the same is for N array itself! The OP tries to set the element with the index 6 while the "allowed" indexes are 0 to 5!
 How to solve memory resource management problems in C++ 元昊 潘2-Nov-18 22:55 元昊 潘 2-Nov-18 22:55
 Re: How to solve memory resource management problems in C++ Richard MacCutchan3-Nov-18 3:56 Richard MacCutchan 3-Nov-18 3:56
 Re: How to solve memory resource management problems in C++ 元昊 潘3-Nov-18 4:39 元昊 潘 3-Nov-18 4:39
 Re: How to solve memory resource management problems in C++ Richard MacCutchan3-Nov-18 4:51 Richard MacCutchan 3-Nov-18 4:51
 Re: How to solve memory resource management problems in C++ 元昊 潘3-Nov-18 5:04 元昊 潘 3-Nov-18 5:04
 Re: How to solve memory resource management problems in C++ Richard MacCutchan3-Nov-18 10:02 Richard MacCutchan 3-Nov-18 10:02
 Re: How to solve memory resource management problems in C++ 元昊 潘3-Nov-18 16:26 元昊 潘 3-Nov-18 16:26
 Re: How to solve memory resource management problems in C++ Richard MacCutchan3-Nov-18 21:17 Richard MacCutchan 3-Nov-18 21:17
 Re: How to solve memory resource management problems in C++ 元昊 潘3-Nov-18 22:00 元昊 潘 3-Nov-18 22:00
 Re: How to solve memory resource management problems in C++ Richard MacCutchan3-Nov-18 22:18 Richard MacCutchan 3-Nov-18 22:18
 Re: How to solve memory resource management problems in C++ 元昊 潘3-Nov-18 22:30 元昊 潘 3-Nov-18 22:30
 Re: How to solve memory resource management problems in C++ Richard MacCutchan3-Nov-18 22:34 Richard MacCutchan 3-Nov-18 22:34
 Re: How to solve memory resource management problems in C++ 元昊 潘3-Nov-18 23:44 元昊 潘 3-Nov-18 23:44
 Re: How to solve memory resource management problems in C++ Stefan_Lang13-Nov-18 22:52 Stefan_Lang 13-Nov-18 22:52
 Re: How to solve memory resource management problems in C++ meerokh7-Nov-18 0:39 meerokh 7-Nov-18 0:39
 Re: How to solve memory resource management problems in C++ Stefan_Lang13-Nov-18 22:34 Stefan_Lang 13-Nov-18 22:34
 Shared sections in a DLL Bram van Kampen2-Nov-18 13:39 Bram van Kampen 2-Nov-18 13:39
 Last Visit: 24-Oct-20 22:57     Last Update: 24-Oct-20 22:57 Refresh ᐊ Prev1...120121122123124125126127128129 Next ᐅ