I am trying to create a dynamic array of 84 elements. The syntax I am using it does not like for some reason. My code works in Microsoft visual c++ but not in code composer. Here is my code.
int size = 84;
int *array = new int[size];
// Put something in the array
for ( int y = 0; y < size; y++ )
array[y] = x;
for some reason it doesn't like the 'new int[size]' part.
Any help would be appreciated.
Thanks