Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QString::QString(char* c)
- {
- count = strlen(c);
- core = _strdup(c);
- }
- QString::QString(const QString& qs)
- {
- count = qs.count;
- core = _strdup(qs.core);
- }
- QString::~QString()
- {
- if (core){
- delete core;
- core = NULL;
- //count = 0;
- }
- }
- QString &QString::operator=(QString& qs)
- {
- if (this != &qs){
- delete core;
- count = qs.count;
- core = _strdup(qs.core);
- }
- return *this;
- }
Advertisement
Add Comment
Please, Sign In to add comment