21
edits
Changes
→Specifications
and ReadOnly
===Overloading "<<" and ">>" operators===
==== operator>> ====
Console& operator>>(Console& cn, int& ch);
Get a key from keyboard using ''cn'' and store it in ''ch'';
==== operator<< ====
Console& operator<<(Console& cn, char ch);
Print the character ''ch'' on the screen, where the cursor is located, using cn;
Console& operator<<(Console& cn, const char* str);
print the string '''str''' on the screen where the cursor is using '''cn'''
===Tester Program===