I am brand new to posting for help on a forum as well as C++. So, if posted to much code, let me know and I will fix it in the future. I am trying to do a lab in a class in which I have to create 3 classes (each with a .h and .cpp file) as well as a main .cpp file to print out some info. However, when I run the program I am getting a C2659 error which is "function left as an operand" for each of my Setter statements in the class file. Please help. I have already spent way too much time banging my head against the wall on this lab assignment. Thanks!
class ATeacher
{
private:
std::string firstName();///this are suppossed to be member variables not function declarations.
std::string lastName();
int aAge;
std::string aAddress();
std::string aCity();
int phoneNumber;
i think this is what you meant.
1 2 3 4 5 6 7 8 9 10 11 12
class ATeacher
{
private:
std::string firstName;
std::string lastName;
int aAge;
std::string aAddress;
std::string aCity;
int phoneNumber;