Search found 3 matches

by grim
Fri Jun 18, 2010 2:29 pm
Forum: Programming Discussion
Topic: Loop problems
Replies: 7
Views: 1575

Re: Loop problems

Winawer wrote:Your checkDraw() function always returns 1.
wow i feel stupid, thnx lol
by grim
Fri Jun 18, 2010 1:54 pm
Forum: Programming Discussion
Topic: Loop problems
Replies: 7
Views: 1575

Re: Loop problems

thanks for the help, the loop now only goes through once, i keep thinking a wrong return value is being sent but i cant find any. After 2 turns take place the loop automaticly breaks. i included the entire code this time. #include <iostream> #include <string> #include <windows.h> using namespace std...
by grim
Fri Jun 18, 2010 3:32 am
Forum: Programming Discussion
Topic: Loop problems
Replies: 7
Views: 1575

Loop problems

ok so im making a tic tac toe game, the only issue im having is after a win or draw it will print the winning text but the loop does not stop it continues as if no one had won. been racking my brain all night as to why... 1 is returned from the checkwin func and draw func if there is a winning/draw ...