using turboc++
--------------------------------------------------------------------------------------------------------
//understanding function of outtext() and outtextxy() function.
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gdriver = DETECT, gmode;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
clrscr();
outtext("hello");
// outtext displays a string in the viewport (graphics mode)
outtextxy(20,20,"different location\n");
// outtextxy displays a string at the specified location (graphics mode)
getch();
closegraph();
}
--------------------------------------------------------------------------------------------------------
//understanding function of outtext() and outtextxy() function.
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gdriver = DETECT, gmode;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "c:\\tc\\bgi");
clrscr();
outtext("hello");
// outtext displays a string in the viewport (graphics mode)
outtextxy(20,20,"different location\n");
// outtextxy displays a string at the specified location (graphics mode)
getch();
closegraph();
}
No comments:
Post a Comment