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;