View Single Post
Old 04-05-2005, 08:25 PM  
buddyjuf
Guest
 
Posts: n/a
basic C++ question:

So I have this 2 dimensional Array (3X3)

and I want to make it so

"if there is an "X" in slot 2-2, return a "YES"

tried doing

if ( board[2][2] hahahaha 'X' )
{
cout << "Yes";
}
else
{
cout << "No";
}

and I keep on getting "No"s at every turn


can anybody help me out on this one?


what I am actually trying to do, is that it's a TIC TAC TOE game, and I need to stop the program once someone wins...

help me out yooo!!!

178340550
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote