M
Mongoose7
Hi everyone,
Ive been trying to overload the insertion and extration operators (<<
and >>) without much success... What I need to do is
override a general cout << anyvar << anyvar
with a overriddden method that adds a timestamp to the cout.
[Timestamp] anyvar anyvar
OR
is it possible to mess around with streams so that I can actually
stream something through a class of my own, like
myclass << somevar
Thanks!
Ive been trying to overload the insertion and extration operators (<<
and >>) without much success... What I need to do is
override a general cout << anyvar << anyvar
with a overriddden method that adds a timestamp to the cout.
[Timestamp] anyvar anyvar
OR
is it possible to mess around with streams so that I can actually
stream something through a class of my own, like
myclass << somevar
Thanks!