Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A dll that contains an executable. Pin
AssemblySoft15-Sep-04 10:54
AssemblySoft15-Sep-04 10:54 
GeneralRe: A dll that contains an executable. Pin
David Crow15-Sep-04 10:56
David Crow15-Sep-04 10:56 
GeneralRe: A dll that contains an executable. Pin
AssemblySoft15-Sep-04 10:55
AssemblySoft15-Sep-04 10:55 
GeneralRe: A dll that contains an executable. Pin
David Crow17-Sep-04 8:26
David Crow17-Sep-04 8:26 
GeneralEdit box and associated CString Pin
Imtiaz Murtaza15-Sep-04 5:00
Imtiaz Murtaza15-Sep-04 5:00 
GeneralRe: Edit box and associated CString Pin
David Crow15-Sep-04 5:13
David Crow15-Sep-04 5:13 
GeneralRe: Edit box and associated CString Pin
RChin15-Sep-04 5:17
RChin15-Sep-04 5:17 
Generalfunction problem Pin
ISUstudent15-Sep-04 4:25
ISUstudent15-Sep-04 4:25 
Ok..So I'm making a program for the "Connect Four" game. You know the one that you try to get 4 colors in a row by dropping a chip in between 2 players.

Well My problem is my function called displayBoard this method places 2 different kinds of markers on the board (one for each player) and displays some kind of marker for empty slots. Be sure your choices are easy to see.(i.e. X's for player 1, O's for players 2)

Well having the data members being...

//data members
int board[12][13];
int numChips[7];

how would I write the function...displayBoard?

All I have so far is this in my .cpp file

void ConnectFour::displayBoard()
{
for(int i=0; i < 12; i++)
{
for(int j=0; j<13; j++)
{
cout << board[i][j] <<" ";
}
cout << endl;
}
}
GeneralRe: function problem Pin
David Crow15-Sep-04 4:49
David Crow15-Sep-04 4:49 
GeneralRe: function problem Pin
ISUstudent15-Sep-04 4:51
ISUstudent15-Sep-04 4:51 
GeneralRe: function problem Pin
David Crow15-Sep-04 5:10
David Crow15-Sep-04 5:10 
GeneralRe: function problem Pin
David Crow24-Sep-04 6:06
David Crow24-Sep-04 6:06 
GeneralRe: function problem Pin
Anonymous24-Sep-04 6:57
Anonymous24-Sep-04 6:57 
GeneralLinkedList Template - LNK2019 Pin
Milby00715-Sep-04 4:06
Milby00715-Sep-04 4:06 
GeneralRe: LinkedList Template - LNK2019 Pin
David Crow15-Sep-04 4:44
David Crow15-Sep-04 4:44 
GeneralRe: LinkedList Template - LNK2019 Pin
Milby00715-Sep-04 5:08
Milby00715-Sep-04 5:08 
GeneralRe: LinkedList Template - LNK2019 Pin
jmkhael15-Sep-04 5:04
jmkhael15-Sep-04 5:04 
GeneralRe: LinkedList Template - LNK2019 Pin
Milby00715-Sep-04 5:20
Milby00715-Sep-04 5:20 
GeneralRe: LinkedList Template - LNK2019 Pin
Bob Stanneveld15-Sep-04 6:31
Bob Stanneveld15-Sep-04 6:31 
QuestionWhat does *.hpp mean? Pin
mcgahanfl15-Sep-04 2:41
mcgahanfl15-Sep-04 2:41 
AnswerRe: What does *.hpp mean? Pin
David Crow15-Sep-04 2:50
David Crow15-Sep-04 2:50 
AnswerRe: What does *.hpp mean? Pin
markkuk15-Sep-04 3:16
markkuk15-Sep-04 3:16 
AnswerRe: What does *.hpp mean? Pin
Henry miller15-Sep-04 3:45
Henry miller15-Sep-04 3:45 
AnswerThank you Dave, Mark and Henry. Pin
mcgahanfl15-Sep-04 4:34
mcgahanfl15-Sep-04 4:34 
GeneralBizarre Close dialog action Pin
brianwelsch15-Sep-04 2:22
brianwelsch15-Sep-04 2:22 

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.