How can I use cout<<myclass?

Posted by ali on Stack Overflow See other posts from Stack Overflow or by ali
Published on 2010-06-05T19:53:02Z Indexed on 2010/06/05 20:02 UTC
Read the original article Hit count: 230

Filed under:
|
|
|
|

myclass is a c++ class writed by me . and when I write

myclass x;
cout << x;   // how to output is " 10 " or "20" like intger or float value 

© Stack Overflow or respective owner

Related posts about c++

Related posts about class