Sponsored Content
Full Discussion: C++ Help
Top Forums Programming C++ Help Post 302273713 by Corona688 on Monday 5th of January 2009 02:49:46 PM
Old 01-05-2009
I'm thinking the issue is this:
Code:
while(game ==1)
{ 
  cout << "Player 1 Your Turn Please Enter Which Cell You Would Like" << endl;
  cin >> row >> column;
}

It will repeat these two lines over and over, never doing anything else, since that's how while works -- it repeats what's inside it until its condition becomes false. I suspect you've put your while() loop in the wrong place, if you want it to print the game board every time you take a turn it needs to surround that part too. At the bottom, when you detect a game over condition, you should set game to zero so the loop finishes.
 
All times are GMT -4. The time now is 01:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy