As others mentioned, you are declaring void error();
but defining void error(const char* str);
. Put const char* str
parameter in the declaration too, inside the class.
solved class and pass string as argument to method
As others mentioned, you are declaring void error();
but defining void error(const char* str);
. Put const char* str
parameter in the declaration too, inside the class.
solved class and pass string as argument to method