Coder's Guild Mailing List

C++ questions

Posted by ADnoctum on 2000-05-25

Hi,

I'm writing a simple String class and i have a couple of questios:

1. What is better, oveload the operator const char * or the operator << to
printout the string using cout?

2. If is better overload the operator << how can I do it?

3. What's the diference betwen:
    String someFunc()
    String someFunc() const;
    const String someFunc();


Thanks.


ADnoctum <adnoctum@xxxxxxxxxx.xxx>
__________________________________________________