Дамп всех задач

This commit is contained in:
vlad committed 2017-05-22 13:29:43 +03:00
1 parent b970626fef
commit 93746b05d7
173 files changed
+2505

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
#include <iostream>
#include <graphics.h>
#include <conio.h>
using namespace std;
int main() {
int windows[2],dom[4],roof[6];
initwindow(300,300);
dom[1]=100;
dom[2]=100;
dom[3]=200;
dom[4]=200;
dom[0]=7;
windows[0]=9;
windows[1]=150;
windows[2]=150;
roof[0]=4;
roof[1]=100;
roof[2]=100;
roof[3]=150;
roof[4]=50;
roof[5]=200;
roof[6]=100;
setfillstyle(1,dom[0]);
bar(dom[1],dom[2],dom[3],dom[4]);
setcolor(0);
circle(windows[1],windows[2],30);
setfillstyle(1,windows[0]);
floodfill(windows[1],windows[2],0);
setcolor(15);
moveto(roof[1],roof[2]);
lineto(roof[3],roof[4]);
lineto(roof[5],roof[6]);
lineto(roof[1],roof[2]);
setfillstyle(1,roof[0]);
floodfill(roof[1]+10,roof[2]-2,15);
system ("pause");
closegraph();
return 0;
}
+15
View File
@@ -0,0 +1,15 @@
#include <iostream>
#include <graphics.h>
#include <conio.h>
using namespace std;
int main() {
initwindow(300,300);
setfillstyle(1,4);
bar(50,50,150,100);
line(50,50,50,200);
system ("pause");
closegraph();
return 0;
}
BIN
View File
Binary file not shown.
+25
View File
@@ -0,0 +1,25 @@
#include <iostream>
#include <graphics.h>
#include <conio.h>
#include <stdlib.h>
#include <time.h>
using namespace std;
int main() {
int y=150;
double h;
srand(time(NULL));
initwindow(300,300);
setfillstyle(1,15);
bar(0,0,300,300);
setcolor(0);
for(int i=100; i>6; i=i-5) {
y=y+5;
circle (150,y,i);
setfillstyle(1,(1+rand()%255, 1+rand()%255, 1+rand()%10));
floodfill(150,y,0);
}
system ("pause");
return 0;
}
+14
View File
@@ -0,0 +1,14 @@
#include <iostream>
#include <graphics.h>
#include <conio.h>
using namespace std;
int main() {
initwindow(300,300);
setcolor(2);
line(50,50,200,200);
system ("pause");
closegraph();
return 0;
}
+13
View File
@@ -0,0 +1,13 @@
#include <iostream>
#include <graphics.h>
#include <conio.h>
using namespace std;
int main() {
initwindow(300,300);
system ("pause");
closegraph();
return 0;
}