22 lines
311 B
C++
22 lines
311 B
C++
#pragma once
|
|
#include <cstring>
|
|
#include <iostream>
|
|
using namespace std;
|
|
|
|
class MyString
|
|
{
|
|
private:
|
|
char* str;
|
|
|
|
public:
|
|
|
|
MyString();
|
|
MyString(const char* value);
|
|
MyString(const MyString&);
|
|
~MyString();
|
|
char* getString();
|
|
void set(const char* value);
|
|
void print();
|
|
void update();
|
|
void writeToFile();
|
|
}; |