RE: Conway's Game of Life 05-05-2013, 10:16 PM
#8
Code:
//Random "globel" defines
You spelled "global" wrong here lol.
But, about the actual code, and this looks like it was written for C.
Code:
system("cls");
Code:
goto mainmenu;break;
Code:
goto getchar;break;
For your loops with goto though especially, why do you think goto is better? There's only certain cases where a goto is feasible, and this is not one of them. I don't see much nested here either, which would lead me to another good use of goto. The way it has been used in your code has turned it into spaghetti code though.
As for the dangers of system(), it can be used easily for exploitive purposes. I would suggest reading this link though: http://www.cplusplus.com/forum/articles/11153/
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]