expected primary-expression before ‘]’ token

When passing arrays you should never add the [ ]. So the line should be this:

gradeBank t1(name, gradeArray, num);

Only use the [ ] if you want to pass a certain element, like such: gradeArray[5]

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)