Re: [Dev-C++] help need for user-conversion operator problem
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: lordSauron <lor...@gm...> - 2005-08-21 17:53:45
|
Yeah, otherwise your String class is okay. Just try and keep in mind that it should only be a wrapper on top of character arrays, nothing more. This is because you really should use character arrays in the first place, but since I'm lazy I'm building a similar class modeled after Java's java.lang.String's look and feel (but not it's "leave memory everywhere" technique), but yeah, that looks okay by me. The only thing I'd like to know about is why you had the iostream operators made as friends of String, rather than overloading them outside of String. I don't get that. Mind explaining? |