Aha! Its finally starting to do what I want it to. I was confused because earlier someone said to remove the m_name initialization of str. Thank you all very much.
Type: Posts; User: amgleason83
Aha! Its finally starting to do what I want it to. I was confused because earlier someone said to remove the m_name initialization of str. Thank you all very much.
ok, I changed all the char types to string (if I changed only the type for name then the initialization of the emp1 object errors because type string cannot be cast to type char or char*. so i...
I guess I am not understanding where to change to a string declaration that is not declared by char (character string?). all i am trying to do is create a Cemployee object that is initialized with...
ok, here is how i updated the code, but i am still having the same problem. did i miss something you were saying?
// paycenter.cpp
// Program to calculate overtime pay for employees
...
here is my code
// paycenter.cpp
// Program to calculate overtime pay for employees
#include <iostream> //for stream I/O
#include <cstring> //for strlen() and...