From 67a686b47a826934936630c5b7dffef95539060a Mon Sep 17 00:00:00 2001 From: "Nikita (PodolskyNK)" Date: Wed, 8 May 2024 10:01:33 +0300 Subject: [PATCH] test: find_minmax --- histogram.cpp | 2 +- histogram_internal.h | 9 +++++++++ text.h | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 histogram_internal.h diff --git a/histogram.cpp b/histogram.cpp index 9ec9340..745693c 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -1,6 +1,6 @@ #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]; 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..b80e6a0 100644 --- a/text.h +++ b/text.h @@ -1,6 +1,6 @@ #ifndef TEXT_H_INCLUDED #define TEXT_H_INCLUDED - +#include void show_histogram_text(const std::vector& bins, size_t& bin_count);