-->

PROGRAM TO UNDERSTAND WINDOW() FUNCTION.

USING TURBOC++
-----------------------------------------------------------------------------------------
//understanding function of window() function.
#include<stdio.h>
#include<conio.h>// contains textcolor() and text background() and window().
void main()
{
clrscr();
window(10,10,40,11);     //generates window of given size
textcolor(BLUE); //sets textcolor blue
textbackground(BLACK); //Sets background black
cprintf("first line...........\n");
cprintf("second");
//sends formatted output to the text window on the screen
  //Does not work with printf.
getch();
}

/*second part prints line from that location where
first part is finished
*/

No comments:

Post a Comment