When ever I try to initialize a multidimensional array I get the following error:
(20) : error C2059: syntax error : '{'
This is my code:
/*
* Tic-Tac-Toe
* Version 1.0
* Copyright (C) 2010 lolraccoon. All rights reserved.
*/
#ifndef GAME_H
#define GAME_H
#include <iostream>
using namespace std;
class Game
{
private:
/*
* 0 = NONE
* 1 = HUMAN
* 2 = COMPUTER
*/
int board[3][3] = {0};
char pieces[3] = {' ','X','O'};
public:
void dispBoard();
};
#endif