Thank you laserlight. The old way worked! Unless I find other problems, everything works for now. :) I changed some assumptions about the content size and made it a little easier for me. Thanks again!
Type: Posts; User: obeeey
Thank you laserlight. The old way worked! Unless I find other problems, everything works for now. :) I changed some assumptions about the content size and made it a little easier for me. Thanks again!
Thank you again for answer. Everything is fine except the assignment operator now.
It looked like this:
typeString& typeString::operator =(const typeString& source)
{
copy(source);
...
Thank you @laserlight for your deep answer, it's really nice to know exactly what's wrong there. I wrote copy operator and copy assignment, this is how it looks:
void myString::copy(const...
Hello :)
I've got a task to write a simple prototype of string class, but unfortunately I have no idea how to do some things.
This is how it looks now:
#include <iostream>
class...