Please help me, I am quite new to C++
I code this in VS 2010
I have a global variable
int avg[SAMPLE][3];
I would like to modify the value in main program by doing something like this:
avg[SAMPLE][3] = {
{30,96,56}, {13,114,55}, {16,118,46},{19,143,64}, {12,129,68},{13,153,69},{15,120,67}
};
However, the VS shows an error: IntelliSense: expected an expression
But it is okay when I declare the value directly to global variable
int avg[SAMPLE][3] = {
{30,96,56}, {13,114,55}, {16,118,46},{19,143,64}, {12,129,68},{13,153,69},{15,120,67}
};
Perhaps this is trivial, but please help me, I am new into C++, and therefore, do not have a clue about it.
Thank you very much.