Im getting a this error and I can't figure out whay can somebody help
error: invalid conversion from ‘employee*’ to ‘char’ [-fpermissive]
x.push_back(e);
^
A string consists out of characters and the function push_back(char); //expects a char inside the parentheses
But you call it like this:
1 2 3 4 5 6 7 8 9
x.push_back(e) // e is a pointer to an object of type employee
//(this is not a char! ;)
//Working examples for this would be:
x.push_back('A');
// or
char c = 'B';
x.push_back(c);