Anyone that's seen one of my previous posts over the past few days , most of that stuff has now been scrapped as I thought we needed to have an uninitialized array, but it turns out we don't.
anyway, so now I'm trying to declare this array but its throwing out an error that seems weird to me but I'm sure its simple. here's the array that's causing the error;
and this is the errorCode:char array1[3][7][7] = { { {'0','0','0','1','0','0','0'}, {'0','0','1','1','0','0','0'}, {'0','0','0','1','0','0','0'}, {'0','0','0','1','0','0','0'}, {'0','0','0','1','0','0','0'}, {'0','0','1','1','1','0','0'} }, { {'0','0','2','2','2','0','0'}, {'0','2','0','0','0','2','0'}, {'0','0','0','0','2','0','0'}, {'0','0','0','2','0','0','0'}, {'0','0','2','0','0','0','0'}, {'0','2','0','0','0','0','0'}, {'0','2','2','2','2','2','0'} }, { {'0','3','3','3','3','0','0'}, {'0','0','0','0','0','3','0'}, {'0','0','0','0','0','3','0'}, {'0','3','3','3','3','0','0'}, {'0','0','0','0','0','3','0'}, {'0','0','0','0','0','3','0'}, {'0','3','3','3','3','0','0'}; //populate(array1); display(array1); return 0;
ICA2.cpp:43: error: expected `}' before ‘;’ token
ICA2.cpp:43: error: expected `}' before ‘;’ token
(it shows twice)
thing is, there already is a ; before the } on line 43. is there meant to be one further up?
thanks in advance
ES
P.S I realise the populate function call is a comment, I've left that function in from a previous program in case I need it later