From 0f842ad12d8161dde2b35fd30ba21602593821bb Mon Sep 17 00:00:00 2001 From: KriviAS Date: Sun, 21 Apr 2024 21:12:59 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC?= =?UTF-8?q?=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index e6da7bf..85bcfe8 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,10 @@ #include #include #include +#include "histogram.h" +#include "text.h" +#include "svg.h" + using namespace std; struct Input { vector numbers; @@ -119,6 +123,6 @@ int main() const size_t MAX_ASTERISK = SCREEN_WIDTH - 3 - 1; auto in = input_data(); auto bins = make_histogram(in.numbers, in.bin_count); - show_histogram_text(bins, MAX_ASTERISK); + show_histogram_svg(bins); return 0; }