Posted by Pete Schoenhoff on July 29, 1999 at 19:00:05:
In Reply to: strings posted by david on July 29, 1999 at 17:53:41:
: i am using the string class and have a problem.
: I need to cout a string containing the path of
: the found file. but i can't do this for some
: reason. I think i can get it to work by using
: string streams but i can't remember how, anyone
: know how to use string streams or any other way
: to get it done??
: thanks,
Did you write your own string class, are
you simply using char pointers, or did you
use one of the Built-In libraries? The
built-ins and char arrays should just allow
you to use "cout << mystring << endl;"
If you build your own class, you have to
overload the stream insertion operator
by using a friend function of the class.