Click here to Skip to main content
14,578,799 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
mveOriginalGriff3-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
mveRichard 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
mveRichard 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
mveRichard 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
mveRichard 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
mveRichard 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
mveRichard 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
mveRichard 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
mveStefan_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
mveStefan_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.