#75738 - deltree - Wed Mar 15, 2006 5:09 pm
hi,
I've a piece of code where the compiler detects a parse error:
what is the correct syntax ? (it's the beginning of the program)
if I remove this part:
then , it works fine...
I've a piece of code where the compiler detects a parse error:
what is the correct syntax ? (it's the beginning of the program)
Code: |
typedef struct Blocks
{ int pos; //rotating char shape[16][4]; //object shape in its 4 positions } BLOCKS; BLOCKS block1; block1.shape[16][4]= { {'.','X','.','.', '.','.','.','.', '.','X','.','.', '.','.','.','.'}, {'.','X','.','.', 'X','X','X','X', '.','X','.','.', 'X','X','X','X'}, {'.','X','.','.', '.','.','.','.', '.','X','.','.', '.','.','.','.'}, {'.','X','.','.', '.','.','.','.', '.','X','.','.', '.','.','.','.'} } |
if I remove this part:
Code: |
block1.shape[16][4]=
{ {'.','X','.','.', '.','.','.','.', '.','X','.','.', '.','.','.','.'}, {'.','X','.','.', 'X','X','X','X', '.','X','.','.', 'X','X','X','X'}, {'.','X','.','.', '.','.','.','.', '.','X','.','.', '.','.','.','.'}, {'.','X','.','.', '.','.','.','.', '.','X','.','.', '.','.','.','.'} } |
then , it works fine...