SaveText.Ru

Без имени
  1. #include (stdio.h>
  2. #include <stdlib.h>
  3. #include <unistd.h>
  4. #include (vingraph.h>
  5. #include <string. h>
  6. tPoint polyline[] = {
  7. {20, 200},
  8. {80, 140},
  9. (80, 200},
  10. {20, 140}
  11. };
  12. tPoint polygon[] ={
  13. {20, 370},
  14. {50, 310}
  15. (80. 370}
  16. };
  17. int main(void) {
  18. ConnectGraph("VG");
  19. int *mage = (int*) malloc (60×60×4);
  20. for (int i = 0, c = 10; i < 60;  i++, c += 0x111314) {
  21. for (int i = 0, c=10; i < 60; i++, c +=0x111314){
  22. for (int j = 0; j < 60; j++) {
  23. image[60*1 + =0x111314)
  24. Image32(20, 610, 60, 60, image);
  25. Pixel(20, 40);
  26. Line(20, 50, 80, 90);
  27. Polyline(polyline. 4);
  28. Rect(20, 240, 60, 60);
  29. Polygon(polygon, 3):
  30. Polyline(polyline, 4):
  31. Rect(20, 240. 60, 60);
  32. Polygon(polygon, 3):
  33.  
  34. #sed -n -e 46.69p part2.cpp
  35. Ellipse(20, 400, 40, 70);
  36. Arc(20, 490, 60, 60, 0, 1800);
  37. Grid(20, 540, 60, 60, 3, 2);
  38. getchar();
  39. CloseGraph();
  40. return 0;
  41. }

Share with your friends:

Print