diff --git a/histogram.cpp b/histogram.cpp index 350f5c1..959e2b0 100644 --- a/histogram.cpp +++ b/histogram.cpp @@ -3,9 +3,10 @@ #include #include #include "histogram.h" +#include "histogram_internal.h" using namespace std; -static +void find_minmax(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..f6af6df --- /dev/null +++ b/histogram_internal.h @@ -0,0 +1,7 @@ +#ifndef HISTOGRAM_INTERNAL_H_INCLUDED +#define HISTOGRAM_INTERNAL_H_INCLUDED +#include + +void find_minmax(std::vector numbers, double &min, double &max); + +#endif // HISTOGRAM_INTERNAL_H_INCLUDED diff --git a/lab_01.cbp b/lab_01.cbp index 60802b2..c6efd23 100644 --- a/lab_01.cbp +++ b/lab_01.cbp @@ -32,7 +32,15 @@ + + + + + + diff --git a/unittest.cbp b/unittest.cbp new file mode 100644 index 0000000..7f9621b --- /dev/null +++ b/unittest.cbp @@ -0,0 +1,38 @@ + + + + + +