My Profile

Ahmednagar, Maharashtra, India
I, Das ShrikKrishna J. MCA III IMSCD&R, Ahmednagar.

Thursday, 28 July 2011

Program to demonstrate outtextxy

/* Program to demonstrate outtextxy */
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm,i,y=0;
char str[3];
initgraph(&gd,&gm,"c:\\turboc3\\");
for(i=1;i<48;i++)
{
if(i%5==0 || i>=32)
{
settextstyle(0,0,0);
itoa(i,str,10);
outtextxy(getmaxx()-100,0,str);
getch();
cleardevice();
y=0;
}
settextstyle(0,0,i);
outtextxy(0,y,"Vivek");
y+=textheight("Vivek");
}
getch();
closegraph();
}

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls