Click here to Skip to main content
15,889,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Free c++ compiler Pin
Anonymous14-Sep-04 20:02
Anonymous14-Sep-04 20:02 
GeneralRe: Free c++ compiler Pin
ThatsAlok14-Sep-04 20:06
ThatsAlok14-Sep-04 20:06 
GeneralRe: Free c++ compiler Pin
Maxime Labelle14-Sep-04 23:06
Maxime Labelle14-Sep-04 23:06 
GeneralRe: Free c++ compiler Pin
Ryan Binns14-Sep-04 23:09
Ryan Binns14-Sep-04 23:09 
GeneralRe: Free c++ compiler Pin
Henry miller15-Sep-04 4:07
Henry miller15-Sep-04 4:07 
Generalso confused! Pin
ISUstudent14-Sep-04 17:16
ISUstudent14-Sep-04 17:16 
GeneralRe: so confused! Pin
Hardy_Smith14-Sep-04 21:21
Hardy_Smith14-Sep-04 21:21 
GeneralRe: so confused! Pin
rotu15-Sep-04 17:41
rotu15-Sep-04 17:41 
Hello,

void verticalwin();
void horizontalwin();
void diagonalwin1();
void diagonalwin2();

I think these functions should also return boolean datatypes, like determineDraw function.

If you will do this, you can just check if any of these functions returned a true value. And hence, determine if there has been a winner.

maybe like this:


bool ConnectFour::playTurn()
{
// TODO:
// Get the column input here

return (verticalwin() || horizontalwin() || diagonalwin1() || diagonalwin2());

}



Generalso confused! Pin
Anonymous14-Sep-04 17:14
Anonymous14-Sep-04 17:14 
GeneralRe: so confused! Pin
Arsalan Malik14-Sep-04 18:19
Arsalan Malik14-Sep-04 18:19 
GeneralAutomating the VC7 debugger Pin
Stephen Vivash14-Sep-04 16:49
Stephen Vivash14-Sep-04 16:49 
GeneralRe: This is ! Pin
Anonymous14-Sep-04 21:05
Anonymous14-Sep-04 21:05 
Generalabout domain Pin
yingkou14-Sep-04 14:44
yingkou14-Sep-04 14:44 
GeneralRe: about domain Pin
Ryan Binns14-Sep-04 18:14
Ryan Binns14-Sep-04 18:14 
GeneralRe: about domain Pin
yingkou14-Sep-04 18:40
yingkou14-Sep-04 18:40 
GeneralRe: about domain Pin
Ryan Binns14-Sep-04 22:57
Ryan Binns14-Sep-04 22:57 
Generalwin32 multi-threading Pin
stevieo8414-Sep-04 14:31
stevieo8414-Sep-04 14:31 
GeneralRe: win32 multi-threading Pin
CodyDaemon14-Sep-04 15:51
CodyDaemon14-Sep-04 15:51 
GeneralRe: win32 multi-threading Pin
stevieo8414-Sep-04 16:28
stevieo8414-Sep-04 16:28 
QuestionKBDLLHOOKSTRUCT error why? Pin
zubeido14-Sep-04 13:37
zubeido14-Sep-04 13:37 
AnswerRe: KBDLLHOOKSTRUCT error why? Pin
Anonymous14-Sep-04 15:46
Anonymous14-Sep-04 15:46 
AnswerRe: KBDLLHOOKSTRUCT error why? Pin
Blake Miller15-Sep-04 4:16
Blake Miller15-Sep-04 4:16 
GeneralPInvoke Context menus Pin
Jumpin' Jeff14-Sep-04 13:19
Jumpin' Jeff14-Sep-04 13:19 
GeneralRe: PInvoke Context menus Pin
Jörgen Sigvardsson14-Sep-04 13:33
Jörgen Sigvardsson14-Sep-04 13:33 
GeneralRe: PInvoke Context menus Pin
Jumpin' Jeff14-Sep-04 15:56
Jumpin' Jeff14-Sep-04 15:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.