Open main menu

CDOT Wiki β

Changes

Console Class - OOP344 20121

443 bytes added, 01:15, 19 January 2012
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===