I've been trying to write a simple program to make a tic tac toe game. I've gotten most of it done, but it won't accept my header file. Here's a sample of the code the compiler won't accept.
#ifndef _TICTACTOE_H
#define _TICTACTOE_H
class tic
{
public:
tic();
void MakeGrid();
void GetLocationPlOne(int);
void GetLocationPlTwo(int);
void CheckPlOneWin();
void CheckPlTwoWin();
private:
int index, dex, x;
char t[3][3];
};
tic::tic()
{
t[3][3]={
{ 49, 50, 51},
{ 52, 53, 54},
{ 55, 56, 57}
};
}
The compiler doesn't seem to like the **t[3][3]={ ** part. It gives me an error. Any help would be nice.