
-----------------------------------
Al_
Sun May 24, 2009 11:45 am

Help cant call on function.
-----------------------------------
Hi. to those who will have helped me, thank you in advance. Heres the code:
im trying to make a tic tac toe game with arrays.

[code]#include

using namespace std;

//int get_input();

int check(int board[3][3], int p);



int main()
{
    int board[3][3];
    //Top Row
    board[0][0] = 0;
    board[0][1] = 0;
    board[0][2] = 0;
    //Middle Row
    board[1][0] = 0;
    board[1][1] = 0;
    board[1][2] = 0;
    //Bottom Row
    board[2][0] = 0;
    board[2][1] = 0;
    board[2][2] = 0;
    
    int p = 0;
    while (p != 0){
   // get_input();
    check(board[3][3],p);                                             //Line 30
    }
}

int check(int board[3][3], int p){

    //Player 1 Cases for winning
             //Rows
    if ((board[0][0] = 1) && (board[0][1] = 1) && (board[0][2] = 1)){
         cout