From f9b120479fa2e0f16a634e819c604e49df09737e Mon Sep 17 00:00:00 2001 From: IvanovArtAl Date: Sun, 1 Jun 2025 20:59:08 +0300 Subject: [PATCH] =?UTF-8?q?d=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B1=D0=B8=D0=B1=D0=BB=D0=B8=D0=BE=D1=82=D0=B5=D0=BA?= =?UTF-8?q?=D0=B0=20curl=20=D0=B8=20=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D1=8B?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B1=D0=BB=D0=B5=D0=BC=D1=8B=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B5=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + lab01.cbp | 7 +++++++ main.cpp | 7 +++++-- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 1a85222..793c0f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +curl/ bin/ obj/ *.cbp diff --git a/lab01.cbp b/lab01.cbp index d541ad7..e7b48a0 100644 --- a/lab01.cbp +++ b/lab01.cbp @@ -32,7 +32,14 @@ + + + + + + + diff --git a/main.cpp b/main.cpp index 516bccd..5f1508c 100644 --- a/main.cpp +++ b/main.cpp @@ -1,8 +1,9 @@ - +#include #include #include #include "histogram.h" #include "text.h" +#include "svg.h" using namespace std; struct Input { @@ -28,8 +29,10 @@ Input input_data() { } int main() { + curl_global_init(CURL_GLOBAL_ALL); + auto in = input_data(); auto bins = make_histogram(in.numbers, in.bin_count); - show_histogram_text(bins, in.bin_count); + show_histogram_svg(bins); return 0; }