You probably want to pass a string a to
getInfo()
but you are actually passing a single character.
Change these two lines:
int getInfo(char *emp_name, int emp_id_number, int emp_age)
emp1.getInfo("Felix", 635932, 23);
You have defined
getInfo()
to return an
int
but you have no
return
statement.
I suggest to use a high warning level when compiling (-Wall with G++, /W4 in the project settings with VS). Then you would have got at least two warnings for your code.