At: http://www.learncpp.com/cpp-tutorial/82-classes-and-class-members/
There is the following program (I made some small modifications):
#include
Regarding the last warning/error message - the first parameter of the setInfo() member function should be declared as const char*. Plain char* represents pointer to a mutable character array, which string literal "Abder-Rahman" isn't.
setInfo()
const char*
char*
"Abder-Rahman"