return (name, idnumber, department, position);
You can't pass back multiple strings like that.
You can append them onto each other though with the + operator or you could return some sort of container such as an array or vector that stores the strings.
I'm really knew to c++ and I made this from scratch. If its too much to ask, can you show me what that would look like? I'm sure I'll understand it from there.
Its for a programming assignment at school. I'm trying to create a Employee class with five different member variables. Then I have to create three objects with input data to go into the class placeholders then have it output on the screen.