From 2f9220ab7a141bd3d22ac30f509ab958a77b4ac3 Mon Sep 17 00:00:00 2001 From: "Ivan (BeloziorovIA)" Date: Sun, 4 May 2025 12:09:26 +0300 Subject: [PATCH] =?UTF-8?q?build:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2=D0=BE=D1=87=D0=BD=D0=BE=D0=B3=D0=BE=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- histogram.h | 8 ++++++++ main.cpp | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 histogram.h diff --git a/histogram.h b/histogram.h new file mode 100644 index 0000000..3415338 --- /dev/null +++ b/histogram.h @@ -0,0 +1,8 @@ +#ifndef HISTOGRAM_H_INCLUDED +#define HISTOGRAM_H_INCLUDED +#include + +std::vector +vector make_histogram(const std::vector& Numbers, size_t bin_count) + +#endif // HISTOGRAM_H_INCLUDED diff --git a/main.cpp b/main.cpp index 93b25ec..d9d5e00 100644 --- a/main.cpp +++ b/main.cpp @@ -5,6 +5,8 @@ #include using namespace std; +//!Разделить программу на файлы (3 пункт)! + //Создание структуры Input для входных данных struct Input { vector Numbers; @@ -130,7 +132,7 @@ int main() { //Создание вектора bins для гистограммы vector bins = make_histogram(in.Numbers, in.bin_count); - // + //Вывод гистограммы show_histogram_text(bins); return 0;