Original Post
Hi all! I'm just starting out developing in C++, so please forgive the extreme stupidity of this question. I have the following function in a simple tic-tac-toe game, which pops up with the error. main.cc:94: error: incompatible types in assignment of The line in question is at the bottom (grid[x,y]=player). Does anyone know why the types apparently don't match? Thanks in advance for any help. J
int' to int[4]'
bool entry_process(char receive[2])
{
char column, number;
bool entry_valid;
int x,y;
column=receive[1];
number=receive[2];
entry_valid=TRUE;
if (!(column=("a"||"b"||"c"||"A"||"B"||"C")))
{entry_valid=FALSE;}
if (!(number=("1"||"2"||"3")))
{entry_valid=FALSE;}
if (entry_valid=FALSE)
{return FALSE;}
if (column=('a'||'A'))
{x=1;}
if (column=('b'||'B'))
{x=2;}
if (column=('c'||'C'))
{x=3;}
if (number='1')
{y=1;}
if (number='2')
{y=2;}
if (number='3')
{y=3;}
grid[x,y]=player;
return TRUE;
}