[ad_1]
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.
[ad_2]
solved class and pass string as argument to method
[ad_1]
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.
[ad_2]
solved class and pass string as argument to method