Code not outputting error

Oct 4, 2015 at 9:38pm
reposted
Last edited on Oct 6, 2015 at 1:46am
Oct 4, 2015 at 10:06pm
If you're going to use the using statement it should be after your include statements not before.

Oct 4, 2015 at 10:13pm
reposted
Last edited on Oct 6, 2015 at 1:46am
Oct 4, 2015 at 10:18pm
What isn't working? What exactly is wrong with the program? If you're getting compile errors then post the complete error messages.
Oct 4, 2015 at 10:24pm
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,
Oct 4, 2015 at 10:36pm
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()?

Oct 4, 2015 at 10:46pm
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 Oct 4, 2015 at 11:04pm
Topic archived. No new replies allowed.