code: Тестируемость программы
Этот коммит содержится в:
@@ -4,7 +4,7 @@
|
|||||||
#include "histogram.h"
|
#include "histogram.h"
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
static void find_minmax(const vector<double>& numbers, double& min, double& max) {
|
void find_minmax(const vector<double>& numbers, double& min, double& max) {
|
||||||
min = numbers[0];
|
min = numbers[0];
|
||||||
max = numbers[0];
|
max = numbers[0];
|
||||||
for (double x : numbers)
|
for (double x : numbers)
|
||||||
|
|||||||
4
histogram_internal.h
Обычный файл
4
histogram_internal.h
Обычный файл
@@ -0,0 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
|
void find_minmax(const std::vector<double>& numbers, double& min, double& max);
|
||||||
Ссылка в новой задаче
Block a user