Search This Blog

Loading...

C Program to display Screen Sever - Computer Graphics


#include <stdio.h>
#include <stdlib.h>
#include <graphics.h>
#include <conio.h>

void main(){
int gdriver=DETECT,gmode,col=400,row=600,font=4,direction=2,size=8,color=15;
initgraph(&gdriver,&gmode,"");
cleardevice();
while(!kbhit()){
    settextstyle(random(font),random(direction),random(size));
    setcolor(random(color));
    outtextxy(random(col),random(row),"DotNetGuts");
    delay(250);
}
closegraph();
}

No comments:

Post a Comment