Here's my code:
Visual Studio gives me the following error:Code:#include <string> #ifndef MAIN_H class MyClass { public: MyClass(); MyClass(string myString); }; MyClass::MyClass() { } MyClass::MyClass(string myString) { } #endif
If I change myString to type INT, there is no compilation error. So what am I doing wrong?





Reply With Quote