ok i have revised the code to
Code:
class TestGrader
{
public:
int setKey;
char grade[20];
char Answer[20] = {'B','D','A','A','C','A','B','A','C','D','B','C','B','A','D','C','C','B','D','A'};
};
{ if(test.grade[test.setKey] = test.Answer[test.setKey])
i get these three errors:
error C2059: syntax error : '{'
error C2334: unexpected token(s) preceding '{'; skipping apparent function body
error C2039: 'Answer' : is not a member of 'TestGrader'
any thoughts would be appreciated because i cannot figure out what is causing the errors due to the coding being correct