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:00

>>32
Fucking owned. That's what you get for posting Anonymously.

Next time learn to use a goddamn debugger and work the fucking logic errors yourself instead of coming here and bothering us with your stupid fucking Sepples problem. Help yourself, thus help us, and we will help you in return (by raping you up the ass with beautiful Konata ASCII art she is my waifu bampu pantsu etc).

NOW GET THE FUCK OUT

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