One-dimensional cellular automata: Difference between revisions
One-dimensional cellular automata (view source)
Revision as of 08:25, 1 September 2010
, 13 years ago→{{header|C++}}: Actually you don't need a case statement at all here
(→{{header|C++}}: removed redundancy) |
(→{{header|C++}}: Actually you don't need a case statement at all here) |
||
Line 469:
std::cout << "_";
int val = (int)array[i-1] << 2 | (int)array[i] << 1 | (int)array[i+1];
}
array = tmpArray;
|