I get an error I don't know about?
Posted on 2004-03-30
Hi, I've just started C++ Programming and I was looking through arrays and well, I have a 3 x 3 char array and I want to make it blank:
01 char Board;
02 char a = " ";
03 for(int i = 0; i < 3; i++)
05 for(int j = 0; j > 3; j++)
07 Board[i][j] = a;
I haven't been able to see what's wrong with this but I keep getting the msg,
Line 02: initialization to 'char' from 'const char *' lacks a cast
I'm using the Bloodshed C++ v4.01 compiler to do this (if it's important) on a windows XP platform...
I'm just wondering what's wrong? if someone could explain what's wrong along with any sort of corrections? thanks in advance...