Programming with Passion

Make the best out of everything.

Monday, 21 November 2016

Code For Fun

Code For Fun 

Small Code can make fun things...
https://youtu.be/kaiXvT2Mkkc
#include<graphics.h>
#include<conio.h>
#include<dos.h>
#include<stdio.h>
#include<stdlib.h>                                                                                         

void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\tc\\bgi");
char c;

while(1)
{
if(kbhit())
{
c=getch();
if(c=='e')exit(0); // e to exit...
}settextstyle(1,0,1);
setcolor(rand()%15);
outtextxy(rand()%640,rand()%480,"0");
setcolor(RED);
settextstyle(1,0,5);
outtextxy(320,240,"HACED");
}
}



No comments:

Post a Comment