Functions in Classes
;;;
Last edited on
You need a constructor, a function called add, and a function called print. Also, you need to close the curly bracket at the end of main
1 2 3 4 5 6 7 8
|
class MyString {
public:
MyString(char*);
MyString add(Mystring other);
print();
private:
std::string internalString;
};
|
The implementation is up to you
Last edited on
Topic archived. No new replies allowed.