fork(1) download
  1. #include <stdlib.h>
  2. #include <iostream.h>
  3. #include <graphics.h> //Подключаем директиву для графического режима
  4.  
  5. void main()
  6. {
  7. system("CLS");
  8. //Две нижние строчки - это для инициализации графики
  9. int gdriver = DETECT, gmode, errorcode;
  10. initgraph(&gdriver, &gmode, "");
  11.  
  12. setfillstyle(1,12); //Устанавливаем цвет и стиль закраски
  13.  
  14. rectangle(0,25,300,35); //Рисуем прямоугольник контуром
  15. bar(0,40,300,50); //Рисуем закрашенный прямоугольник без контура
  16.  
  17. system("PAUSE");
  18. return;
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:22: fatal error: iostream.h: No such file or directory
 #include <iostream.h>
                      ^
compilation terminated.
stdout
Standard output is empty