fork download
  1. #include<conio.h>
  2. #include<graphics.h>
  3. #include<dos.h>
  4. void main()
  5. {
  6. void heart();
  7. clrscr();
  8. int gd=DETECT,gm=0,x,y;
  9. initgraph(&gd,&gm,"c:\\tc\\bgi");
  10. for(int i=-80;i<=200;i++)
  11. {
  12. setcolor(0+i);
  13. line(0+i,0+i,80+i,80+i);
  14. line(0+i,1+i,80+i,81+i);
  15. line(70+i,47+i,80+i,80+i);
  16. line(45+i,70+i,80+i,81+i);
  17. delay(40);
  18. clearviewport();
  19. }
  20. setcolor(RED);
  21. heart();
  22. line(0+i,0+i,80+i,80+i);
  23. line(0+i,1+i,80+i,81+i);
  24. line(70+i,47+i,80+i,80+i);
  25. line(45+i,70+i,80+i,81+i);
  26. getch();
  27. }
  28. void heart()
  29. {
  30. ellipse(getmaxx()/2,getmaxy()/2,20,212,50,50);
  31. ellipse(411,240,330,155,50,50);
  32. ellipse(340,20,230,260,100,320);
  33. ellipse(390,-10,290,310,100,360);
  34. line(320,335,370,380);
  35. line(370,380,425,328);
  36. line(getmaxx()/2+50,50,getmaxx()/2+50,140);
  37. line(getmaxx()/2+30,50,getmaxx()/2+70,50);
  38. line(getmaxx()/2+30,140,getmaxx()/2+70,140);
  39. line(getmaxx()/2+20,380,getmaxx()/2+20,460);
  40. line(getmaxx()/2+80,380,getmaxx()/2+80,460);
  41. line(getmaxx()/2+20,460,getmaxx()/2+80,460);
  42. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:18: fatal error: conio.h: No such file or directory
 #include<conio.h>
                  ^
compilation terminated.
stdout
Standard output is empty