anonymous
2008-04-17 18:26:31 UTC
void array::zeroOut()
{
array[20] = {0}; // Set array to Zero
}
but I get a syntax error saying:
expected primary-expression before '{' token
expected `;' before '{' token
for line:
array[20] = {0};
I think it has something to do with the brackets in the assignment statement, but I have no clue. Any ideas?