Star

 #include<stdlib.h>

#include<graphics.h>
#include<conio.h>
#include<dos.h>
int main(){
   int gd = DETECT,gm,i,x,y;
   initgraph(&gd,&gm,"c:\\tc\\bgi");
while(!kbhit()){
   for (i = 0;i<=500;i++){
     x = rand() %getmaxx();
     y = rand() %getmaxy();
     putpixel(x,y,15);

   }
  delay(1000);
     cleardevice();  }
   getch();
   closegraph();

}

Comments

Popular posts from this blog

Snake game.c

Type declaration

Array with function