G
Goran
Hi all,
I want to store data with << like this way:
myClass_t aObject;
string aString("foo");
// no output, just edit and store the string
aObject << aString;
// here comes the edited string
cout << aObject;
My question is:
How do I realize "aObject << aString;"? I've read a lot about
overloading operators and it's no prob. But what's the signature of
the operator which realizes "aObject << aString;"?
Thanks a lot
Goran
I want to store data with << like this way:
myClass_t aObject;
string aString("foo");
// no output, just edit and store the string
aObject << aString;
// here comes the edited string
cout << aObject;
My question is:
How do I realize "aObject << aString;"? I've read a lot about
overloading operators and it's no prob. But what's the signature of
the operator which realizes "aObject << aString;"?
Thanks a lot
Goran