MCPcopy Create free account
hub / github.com/ShiqiYu/CPP / MyString

Method MyString

week11/examples/example2/mystring.hpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 char * characters;
10 public:
11 MyString(int buf_len = 64, const char * data = NULL)
12 {
13 std::cout << "Constructor(int, char*)" << std::endl;
14 this->buf_len = 0;
15 this->characters = NULL;
16 create(buf_len, data);
17 }
18 MyString(const MyString & ms)
19 {
20 std::cout << "Constructor(MyString&)" << std::endl;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected