At: http://www.learncpp.com/cpp-tutorial/82-classes-and-class-members/
There is the following program (I made some small modifications):
#include
You'll have to include the header that declares the strncpy function. So add
strncpy
at the beginning.
And the member name is m_wage but you've used it as wage in your print member function.
m_wage
wage
print
Change
std::cout<<"Name: "<
to