diff --git a/Histogram/histogram.cpp b/Histogram/histogram.cpp index fc209c4..01b1a10 100644 --- a/Histogram/histogram.cpp +++ b/Histogram/histogram.cpp @@ -27,7 +27,7 @@ std::vector<size_t> make_histogram(const std::vector<double>& numbers, size_t bi double min, max; find_minmax(numbers, min, max); if (max == min) { - return bins; // ���������� ������ �������, ��� ��� ����������� �� ����� ���� ��������� + return bins; // ���������� ������ �������, find��� ��� ����������� �� ����� ���� ��������� } double bin_width = (max - min) / bin_count; for (double number : numbers) { diff --git a/Histogram/histogram.h b/Histogram/histogram.h index 8b13789..1c2e056 100644 --- a/Histogram/histogram.h +++ b/Histogram/histogram.h @@ -1 +1,4 @@ - +#pragma once +#include <vector> +size_t find_minmax(const std::vector<double>& numbers, double& min, double& max); +std::vector<size_t> make_histogram(const std::vector<double>& numbers, size_t bin_count);