Alright, so I went to my school's CS tutoring center and that really helped me out. Now I'm not sure if this program is set up correctly and what not, but I think I got the basic idea. This is a tic tac toe game for two players (no AI). It won't compile and I'm wondering what I should do from here.
This is the link to the assignment, with an example of what it should look like when it is complete:
Here are the errors I recieve:
Whenever I try to add "int selection;" into the "bool playGame" function, the compiler freaks out and gives me a bunch of random errors.Code:prog12.cc: In function `int main()': prog12.cc:8: error: too few arguments to function `bool checkWin(char*, char)' prog12.cc:38: error: at this point in file prog12.cc: In function `bool playGame()': prog12.cc:68: error: `selection' undeclared (first use this function) prog12.cc:68: error: (Each undeclared identifier is reported only once for each function it appears in.)
Here is the code I've wrote so far:
Thanks in advance!Code:See new code below!