Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 07 / MyString / MyString.h
diff options
context:
space:
mode:
1 files changed, 24 insertions, 1 deletions
-rw-r--r--Sem. 07/MyString/MyString.h25
diff --git a/Sem. 07/MyString/MyString.h b/Sem. 07/MyString/MyString.h
index 61c6c5c..77b46fa 100644
--- a/Sem. 07/MyString/MyString.h
+++ b/Sem. 07/MyString/MyString.h
@@ -1 +1,24 @@
-nv
+#pragma once
+
+
+class MyString
+{
+ char* str;
+ size_t size;
+
+ void copyFrom(const MyString& other);
+ void free();
+public:
+ MyString();
+ MyString(const char*);
+
+ MyString(const MyString&);
+ MyString& operator=(const MyString& other);
+ ~MyString();
+
+ size_t getSize() const;
+ void concat(const MyString& other);
+
+ const char* c_str() const;
+};
+//MyString name = "sdfsdf" \ No newline at end of file