Re: expected primary-expression error
--------------------------------------------------------------------------------
void setName(char newFirst[], char newLast[])
This function will change either first name, last name, or both. If the "null string" is passed for either argument, the corresponding data member will not be altered. No error checking need be done.
The null string can be supplied by passing the string literal "" to the function (that is, two double-quote chars with no space between them) or by supplying a char array with '\0' in ar[0].
oh! and if i have a functiont that must do this, is this right?
void Student::setName(char newFirstname[], char newLastname[])
{
strcpy(lastname, newLastname);
strcpy(firstname, newFirstname);
}