Conway’s Game of Life in C++
A (rather crude) version of the Game of Life written in C++. You’ll need to compile it.
A (rather crude) version of the Game of Life written in C++. You’ll need to compile it.
August 24, 2008 - 5:27 pm
Tags: C++, compilation, g++
Posted in C++, Programming | 2 comments
If you are using Mac OSX or Linux, go to the folder where your cpp file is located in the terminal. On windows, you will need to install g++.
Assuming your source file is called main.app, and you want your output file to be called “hellos” then type the following:
g++ -o hellos main.cpp
To run it:
./hellos
Note: It [...]
After some fiddling with XCode and C++, I finally got it compiling my Hello World. To my pleasure, the syntax in C++ is somewhat similar with Java, but there are still many differences.
In Java, to start a class we use:
public class fileName
{
}
In a command line C++ program, the following lines are needed:
#include <iostream>
using namespace std;
iostream [...]


February 10, 2009 - 12:34 pm
I’d like to learn from your code, but the source link doesn’t seem to work. Do you still have a copy you’d be able to mail me?
Cheers,
Alec
April 22, 2009 - 7:18 am
Link doesn’t work, Could you post it again or email it to me ?
Would be great to learn some C++
Thanks in Advance!
April 25, 2009 - 4:48 pm
@Alex
Link is fixed (again) and code is now hosted on Snipt.
February 10, 2009 - 11:38 pm
Link has been fixed.