fork download
  1. #include <graphics.h>
  2. #include <conio.h>
  3. void main()
  4. {
  5. double x = 3.051522, y = 1.582542, z = 15.62388, x1, y1, z1;
  6. double dt = 0.0001;
  7. int a = 5, b = 15, c = 1;
  8. int gd=DETECT, gm;
  9. initgraph(&gd, &gm, "C:\\BORLANDC\\BGI");
  10. do {
  11. x1 = x + a*(-x+y)*dt;
  12. y1 = y + (b*x-y-z*x)*dt;
  13. z1 = z + (-c*z+x*y)*dt;
  14. x = x1; y = y1; z = z1;
  15. putpixel((int)(19.3*(y - x*0.292893) + 320),
  16. (int)(-11*(z + x*0.292893) + 392), 9);
  17. } while (!kbhit());
  18. closegraph();
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:22: fatal error: graphics.h: No such file or directory
 #include <graphics.h>
                      ^
compilation terminated.
stdout
Standard output is empty