Code not outputting error

reposted
Last edited on
If you're going to use the using statement it should be after your include statements not before.

reposted
Last edited on
What isn't working? What exactly is wrong with the program? If you're getting compile errors then post the complete error messages.
One compile error,

104:28: error: cannot bind 'std::ostream {aka std::basic_ostream<char>}' lvalue to 'std::basic_ostream<char>&&'
In file included from /usr/include/c++/4.9/iostream:39:0,
This is probably telling you that the compiler doesn't know how to print a "Player". What exactly are you trying to return from checkBoard()?

My checkBoard is a function which checks if the array board will have a winning combination of X's or O's. I'm trying to checkBoard the array to see if it's a winning combination of a tictactoe game.

It should return if X, O, or None is a winner
Last edited on
Topic archived. No new replies allowed.