class Byte { friend ostream& operator<<(ostream& s, Byte b) { s<<( b.m_a ); // Here display whatever you want with your member. Prepare integer version display or other formatted string, and put to the output stream return s; } }; // From main function main() { byte b(20); cout<<b; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)