From 9742ec3ced6f828779fe8cc11af38253080ead9e Mon Sep 17 00:00:00 2001 From: grudininyk Date: Mon, 29 Apr 2024 01:08:16 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D1=82=D0=B5=D1=81=D1=82=20find=5Fminma?= =?UTF-8?q?x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- histogram.cpp | 2 +- histogram_internal.h | 9 +++++++++ text.h | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 histogram_internal.h diff --git a/histogram.cpp b/histogram.cpp index 4d33c05..77c4a03 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -2,7 +2,7 @@ using namespace std; -static void +void find_minmax(const vector& numbers, double& min, double& max) { min = numbers[0]; diff --git a/histogram_internal.h b/histogram_internal.h new file mode 100644 index 0000000..34592d8 --- /dev/null +++ b/histogram_internal.h @@ -0,0 +1,9 @@ +#ifndef HISTOGRAM_INTERNAL_H_INCLUDED +#define HISTOGRAM_INTERNAL_H_INCLUDED + +#include + +void +find_minmax(const std::vector& numbers, double& min, double& max) + +#endif // HISTOGRAM_INTERNAL_H_INCLUDED diff --git a/text.h b/text.h index 5733dff..5c6df4d 100644 --- a/text.h +++ b/text.h @@ -1,6 +1,8 @@ #ifndef TEXT_H_INCLUDED #define TEXT_H_INCLUDED +#include + void show_histogram_text(const std::vector& bins, size_t& bin_count);