May 2012
Intermediate to advanced
679 pages
16h 56m
English
The combination of display monitor and keyboard is called console. Another term for console is terminal. If we are interested in Console Input–Output, Turbo C++ 3.0 provides useful functions stored in the header file <conio.h> (Table F.1). Most of them are specific to DOS operating system only.
Table F.1 Functions in conio.h
| Function | What it does |
|---|---|
| clrscr | void clrscr(void); |
| Clears text mode window | |
| cprintf | Sends formatted output to the text window on the screen |
| getch | int getch(void); |
| Gets a character from console but does not echo to the screen | |
| getche | int getche(void); |
| Gets a character from console, and echoes to the screen | |
| gotoxy | void gotoxy(int x, int y); |
| Positions ... |
Read now
Unlock full access