Click here to Skip to main content
14,028,175 members

C / C++ / MFC

 
AnswerRe: Script generation from Objects using C++ Pin
leon de boer6-Nov-18 14:30
memberleon de boer6-Nov-18 14:30 
GeneralRe: Script generation from Objects using C++ Pin
FrankStar8912-Nov-18 11:22
memberFrankStar8912-Nov-18 11:22 
QuestionGames Pin
Member 140425973-Nov-18 5:24
memberMember 140425973-Nov-18 5:24 
AnswerRe: Games Pin
OriginalGriff3-Nov-18 5:27
protectorOriginalGriff3-Nov-18 5:27 
AnswerRe: Games Pin
CPallini4-Nov-18 21:50
mveCPallini4-Nov-18 21:50 
QuestionConways Game of life game in C Pin
Abhinav99933-Nov-18 1:27
memberAbhinav99933-Nov-18 1:27 
AnswerRe: Conways Game of life game in C Pin
Richard MacCutchan3-Nov-18 3:57
protectorRichard MacCutchan3-Nov-18 3:57 
AnswerRe: Conways Game of life game in C Pin
元昊 潘3-Nov-18 4:04
member元昊 潘3-Nov-18 4:04 
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];
    }
}

You can use the recursive algorithm of the stack or compute the boundary element separately.
xgzsChris

GeneralRe: Conways Game of life game in C Pin
Victor Nijegorodov3-Nov-18 6:33
memberVictor Nijegorodov3-Nov-18 6:33 
GeneralHow to solve memory resource management problems in C++ Pin
元昊 潘2-Nov-18 22:55
member元昊 潘2-Nov-18 22:55 
GeneralRe: How to solve memory resource management problems in C++ Pin
Richard MacCutchan3-Nov-18 3:56
protectorRichard MacCutchan3-Nov-18 3:56 
AnswerRe: How to solve memory resource management problems in C++ Pin
元昊 潘3-Nov-18 4:39
member元昊 潘3-Nov-18 4:39 
GeneralRe: How to solve memory resource management problems in C++ Pin
Richard MacCutchan3-Nov-18 4:51
protectorRichard MacCutchan3-Nov-18 4:51 
AnswerRe: How to solve memory resource management problems in C++ Pin
元昊 潘3-Nov-18 5:04
member元昊 潘3-Nov-18 5:04 
GeneralRe: How to solve memory resource management problems in C++ Pin
Richard MacCutchan3-Nov-18 10:02
protectorRichard MacCutchan3-Nov-18 10:02 
AnswerRe: How to solve memory resource management problems in C++ Pin
元昊 潘3-Nov-18 16:26
member元昊 潘3-Nov-18 16:26 
GeneralRe: How to solve memory resource management problems in C++ Pin
Richard MacCutchan3-Nov-18 21:17
protectorRichard MacCutchan3-Nov-18 21:17 
AnswerRe: How to solve memory resource management problems in C++ Pin
元昊 潘3-Nov-18 22:00
member元昊 潘3-Nov-18 22:00 
GeneralRe: How to solve memory resource management problems in C++ Pin
Richard MacCutchan3-Nov-18 22:18
protectorRichard MacCutchan3-Nov-18 22:18 
GeneralRe: How to solve memory resource management problems in C++ Pin
元昊 潘3-Nov-18 22:30
member元昊 潘3-Nov-18 22:30 
GeneralRe: How to solve memory resource management problems in C++ Pin
Richard MacCutchan3-Nov-18 22:34
protectorRichard MacCutchan3-Nov-18 22:34 
PraiseRe: How to solve memory resource management problems in C++ Pin
元昊 潘3-Nov-18 23:44
member元昊 潘3-Nov-18 23:44 
GeneralRe: How to solve memory resource management problems in C++ Pin
Stefan_Lang13-Nov-18 22:52
memberStefan_Lang13-Nov-18 22:52 
GeneralRe: How to solve memory resource management problems in C++ Pin
meerokh7-Nov-18 0:39
membermeerokh7-Nov-18 0:39 
GeneralRe: How to solve memory resource management problems in C++ Pin
Stefan_Lang13-Nov-18 22:34
memberStefan_Lang13-Nov-18 22: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.


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190419.4 | Last Updated 21 Apr 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid