hi, I understand basic programming (understand classes, functions, etc.)
something i don't get however is operators
i know you can't create new ones but can't you use ones already in place in a different way
for example:
1 2 3
//i'll skip the beggining stuff
ztring mystring; //creates a variable of type 'ztring' (class)
cin>>mystring; //how do i tell the program what to do, can I?
operator= has to be a member of the class; it cannot be a friend.
You have some const correctness issues as well. Namely, a friend operator+ should
take both arguments by const reference; operator<< should take the string by
const reference; operator= should take the rhs as a const reference.
operator+= should be a member.
And you don't need a destructor (the default one is sufficient).