From 446c71e77a8fcff7f1886c90b57bbe935371beab Mon Sep 17 00:00:00 2001 From: MelnikovDM Date: Tue, 7 May 2024 01:46:17 +0300 Subject: [PATCH] build: test find_minmax --- histogram.cpp | 2 +- histogram_internal.h | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 histogram_internal.h diff --git a/histogram.cpp b/histogram.cpp index 9acb4cf..29d1e52 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -4,7 +4,7 @@ using namespace std; -static void +void find_minmax(const vector& numbers, double& min, double& max) { min = numbers[0]; max = numbers[0]; diff --git a/histogram_internal.h b/histogram_internal.h new file mode 100644 index 0000000..2aff262 --- /dev/null +++ b/histogram_internal.h @@ -0,0 +1,9 @@ +#ifndef HISTOGRAM_H_INCLUDED +#define HISTOGRAM_H_INCLUDED + +#include + +void +find_minmax(const std::vector& numbers, double& min, double& max); + +#endif // HISTOGRAM_H_INCLUDED \ No newline at end of file