Thread: Tic Tac Toe!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    22

    Tic Tac Toe!

    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:

    http://www.cs.uwm.edu/classes/cs201/.../06/06/06.html


    Here are the errors I recieve:

    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.)
    Whenever I try to add "int selection;" into the "bool playGame" function, the compiler freaks out and gives me a bunch of random errors.

    Here is the code I've wrote so far:

    Code:
    See new code below!
    Thanks in advance!
    Last edited by the_lumin8or; 04-03-2006 at 08:39 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help me with my simple Tic tac toe prog
    By maybnxtseasn in forum C Programming
    Replies: 2
    Last Post: 04-04-2009, 06:25 PM
  2. tic tac toe crashes :(
    By stien in forum Game Programming
    Replies: 4
    Last Post: 05-13-2007, 06:25 PM
  3. Help with Tic Tac Toe game
    By snef73 in forum C++ Programming
    Replies: 1
    Last Post: 04-25-2003, 08:33 AM
  4. Need some help with a basic tic tac toe game
    By darkshadow in forum C Programming
    Replies: 1
    Last Post: 05-12-2002, 04:21 PM
  5. Tic Tac Toe Help
    By aresashura in forum C++ Programming
    Replies: 1
    Last Post: 11-21-2001, 12:52 PM