Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

First year programming yay!

Name: Anonymous 2008-03-01 21:22

Hola /prog/,

I'm attempting to write the code for Conway's Game of Life for my C++ class (out of '.' '*' and '@') Everything compiles fine, yet it doesn't do what I want. I've been pouring over the damn thing, and I thought you guys might be kind enough to help out.

Where i is the row, t is column, M is the array storing the number of live cells. I think the problem is in what I've posted here, or the functions, which I will post in a second. When I run this all it does is output the original grid of cells, even though my functions should have changed them in SOME way.

 for (int i = 1; i <= n; i++)
    {
      for (int t = 1; t <= n; t++)
    {
      M[i][t] = count(A, n, i, t);
    }
    }

  for (int x = 0; x >= steps; x++)
     {
      grow(A, M, n, i, t);
     }
   output_array(A, n);

Name: Anonymous 2008-03-02 16:49

>>34
gtfo weeaboo faggot.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List