Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String::String(const char* text)
- {
- while (text[m_Size] != '\0')
- {
- m_Size++;
- }
- m_Buffer = new char[m_Size + 1];
- for (size_t i = 0; i < m_Size + 1; i++)
- {
- m_Buffer[i] = text[i];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement