Here's my code snippet with error included:
const int BLOCK_TYPE_NUM = 6; // number of total block types int block_states[BLOCK_TYPE_NUM]; block_states[0] = 1; // expected constructor, destructor, or type conversion before '=' token block_states[1] = 2; // expected constructor, destructor, or type conversion before '=' token block_states[2] = 2; // expected constructor, destructor, or type conversion before '=' token block_states[3] = 4; // expected constructor, destructor, or type conversion before '=' token block_states[4] = 4; // expected constructor, destructor, or type conversion before '=' token block_states[5] = 4; // expected constructor, destructor, or type conversion before '=' token
So, here's the error for each line containing "block_state" array:
16 ..\Tetris Apps\main.cpp expected constructor, destructor, or type conversion before '=' token
Thanks for taking a look at this guys,
mathacka






