From 08ac0343c45a60789d88ba3d6cb031c26986341f Mon Sep 17 00:00:00 2001 From: MamakinYR Date: Sun, 21 Apr 2024 22:09:54 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=A2=D0=B5=D1=81=D1=82=D0=B8=D1=80?= =?UTF-8?q?=D1=83=D0=B5=D0=BC=D0=BE=D1=81=D1=82=D1=8C=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B3=D1=80=D0=B0=D0=BC=D0=BC=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- histogram.cpp | 2 +- histogram_internal.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 histogram_internal.h diff --git a/histogram.cpp b/histogram.cpp index 534f64c..9eec184 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -4,7 +4,7 @@ #include "histogram.h" using namespace std; -static void find_minmax(const vector& numbers, double& min, double& max) { +void find_minmax(const vector& numbers, double& min, double& max) { min = numbers[0]; max = numbers[0]; for (double x : numbers) diff --git a/histogram_internal.h b/histogram_internal.h new file mode 100644 index 0000000..3fb3176 --- /dev/null +++ b/histogram_internal.h @@ -0,0 +1,4 @@ +#pragma once +#include + +void find_minmax(const std::vector& numbers, double& min, double& max); \ No newline at end of file