Conio.h
clrscr()
clears the screen.
getch()
Waits for a keystroke, doesn't echoes it on the screen.
getche()
Waits for a keystroke and prints it on the screen.
cprintf(*char)
Prints string on the screen. It can show different colors specified on the screen.
ex.
textcolor(12)
cprintf("RED");
textcolor(9);
cprintf("BLUE");
ex.
textcolor(12)
cprintf("RED");
textcolor(9);
cprintf("BLUE");
textcolor(int)
gotoxy(int line, int column)
sends the curson to the line and colum specified.
ex.
gotoxy(35,25); //Places the cursor to bottom right of the screen
ex.
gotoxy(35,25); //Places the cursor to bottom right of the screen
kbhit()
Checks for a keystroke. It can be retrieved using getch() or getche() or any other input function.
ex.
while(!kbhit())
{
cout<<"..";
}
char c=getch();
cout<<c;
ex.
while(!kbhit())
{
cout<<"..";
}
char c=getch();
cout<<c;
textbackground(int color)
wherex(), wherey()
Returns the current cursor x or y position.
ex.
int x=wherex();
ex.
int x=wherex();