the - / are implemented in a way that ill explain later. the * is like ruby strings. what do you mean make a copy? and yes. i tried making an object and initializing it and then printing it but it gave me an error
well what am i supposed to do to add the strings together then?
You're supposed to pass strcat two char* objects. Is that not obvious from reading the strcat documentation?
1 2 3 4 5 6
friend DTSString operator+(DTSString stringOne, char charOne)
// Here ytou will need to do something to make sure stringOne.currentStringValue has enough space to add this one extra char you want to add
becuase DTSString is technically a char* with just more features
EVERY object is technically some basic objects with more features. It's up to you to tell the compiler what to do with them.
yeah i realized that i just need to pass the char *'s instead of the object. so now i have two questions. it lets me add two DTSStrings together but that was because i overloaded it, but why does it let me put the value in a third one with the = operator w/o overloading it? and my second is do i have to overload the << operator to cout it? and if so how?