Computer Science Canada Game Of Life |
Author: | a22asin [ Fri Sep 26, 2014 8:05 am ] | ||||
Post subject: | Game Of Life | ||||
Hi, so im trying to implement Conway's Game of Life. I have an idea of how im going to do it. My problem is that within 10 min of coding, i get these errors:
I cannot, for the life of me, figure out why im getting these errors. I have tried to research how to use my codes and what not and i followed it to the dot. Can someone please help me out here and point me to the right direction?
|
Author: | Tony [ Fri Sep 26, 2014 1:05 pm ] | ||||
Post subject: | Re: Game Of Life | ||||
Start from the first error: a22asin @ Fri Sep 26, 2014 8:05 am wrote: [line]10: error: multidimensional array must have bounds for all dimensions except the first
what the message is saying is that you want
not
|
Author: | a22asin [ Fri Sep 26, 2014 1:19 pm ] | ||
Post subject: | Re: Game Of Life | ||
ok, then what about the remainder of the errors:
ive tried going through the error and figuring it out. Like for line 12, i do say using namespace std at the beginning, so i dont know why that comes up, i have all the necessary brackets and other punctuations in my code (as you can see above), but im still getting the error. |
Author: | Tony [ Fri Sep 26, 2014 1:36 pm ] | ||
Post subject: | RE:Game Of Life | ||
G++ was giving me a different set of errors, which lead to looking up the documentation to what's expected -- http://www.cplusplus.com/doc/tutorial/arrays/
|
Author: | a22asin [ Fri Sep 26, 2014 1:46 pm ] |
Post subject: | RE:Game Of Life |
ok, so after the painstaking hours of searching fro my problems, i have finally got my program working. Thanks Tony. The only problem now is that my g++ keeps giving me the error that the directory or file doesn't exist; im working on a linux shell (which im using for another class as well). |
: |