Hi!

I have a class named String which contains member "char *text" and method "void print() const;".

Whenever i declare String class and i want to print that string on the screen i always get the address of the class String (example : 2DEE22).

I just want to do this:

Code:
  ...
  String s("HELLO !!");
  cout << s;
So this must print "HELLO !!" on the screen and not "2DEE22". What I need is that cout << will automatically call print() method.

What do I have to do to correct this problem?