Breaking News

Graphics Programming in c (RAIN)

#include<stdio.h>
#include<graphics.h>
#include<stdlib.h>
void main( )
{
int GD=DETECT,GM;
int Maxx,Maxy,i;
initgraph(&GD,&GM,"");
Maxx=getmaxx();
Maxy=getmaxy();
while(!kbhit())
{
setcolor(WHITE);
for(i=0;i<600;i++)
outtextxy(random(Maxx),random(Maxy-50),"\");
cleardevice();
setcolor(RED);
outtextxy(300,450," [BY BRIJESH]");
}
getch();
closegraph();
}

No comments