You're not setting m_name in the CEmployee constructor.
Also, if name can have a space in it (first and last name) you'll want to use getline in main to read it.
You're not setting m_name in the CEmployee constructor.
Also, if name can have a space in it (first and last name) you'll want to use getline in main to read it.
The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss