Because, the name in void Employee::init(string name, unsignedint salary) is of type string and in the Employee class its of a type char[] therefore it causes an error. They are of different types. To solve it, change char name[20]; to string name.
One more thing change void init(string, unsignedint); to void init(string name, unsignedint salary); in line# 11.
I believe it is the preset data in the text box before users enter questions, using "http://www.cplusplus.com/".
I've seen it a few times now on different posts.
It should be implemented so that it becomes deleted when the text box is selected/focused. Maybe the web admin will get to that eventually. Or unless it has something to do with the users browser/device. =D
The C++ std::string is safer than using a character array. But in either case, if you want to limit the length of the employee name to 20 characters, you need to add extra checks of some sort. Also the array length needs to be 21 to allow for the null terminator.
You could do this: strcpy(this->name, name.c_str());
strcpy is one of the many functions for manipulating c-strings (#include <cstring> header). But if the input is longer than 20 characters, it will overflow beyond the end of the array and corrupt other areas of memory.
You could use strncpy() instead. That gives protection against overwriting other areas of memory. But you need to be sure to add the null terminator just in case.