View Single Post
Old 04-05-2005, 10:16 PM  
wdsguy
Ryde or Die
 
Industry Role:
Join Date: Dec 2002
Location: California-Shanghai
Posts: 19,568
Quote:
Originally Posted by bdjuf
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

Doing a assignment for cs class?
wdsguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote