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

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

+14
View File
@@ -0,0 +1,14 @@
#include <cstdlib>
#include <iostream>
#include "mygraph.h"
using namespace std;
int main(int argc, char *argv[])
{
initwindow (500, 500);
krugi (250, 250, 150, 6); // X, Y, R, Color.
system("PAUSE");
closegraph();
return EXIT_SUCCESS;
}
+12
View File
@@ -0,0 +1,12 @@
#include <graphics.h>
#include <conio.h>
#include <stdlib.h>
void krugi ( int x, int y, int r, int c) {
for(int i=r; i>6; i=i-5) {
y=y+5;
circle (x,y,i);
setfillstyle(1, c);
floodfill(x,y,15);
}
}