Search found 2 matches

by TheVelho
Wed Aug 29, 2007 1:41 am
Forum: Volume 4 (400-499)
Topic: 457 - Linear Cellular Automata
Replies: 25
Views: 14765

I finally got it working, after a few thousands of tries... Sorry for the noise.

There should be one blank line between each bloc, and none at the end.
by TheVelho
Tue Aug 28, 2007 6:25 pm
Forum: Volume 4 (400-499)
Topic: 457 - Linear Cellular Automata
Replies: 25
Views: 14765

Hi, I don't understand why I'm getting a PE. Here is my code :

#include<stdio.h>


int DNA[10];
int c[50][40];


void compute_line(int i) {
int j;

c[i+1][0] = DNA[c[i][0] + c[i][1]];
c[i+1][39] = DNA[c[i][38] + c[i][39]];

for(j = 1; j < 39; j++)
c[i+1][j] = DNA[c[i][j-1] + c[i][j] + c[i][j ...

Go to advanced search