code: Тестируемость программы

master
MamakinYR 1 год назад
Родитель a8f98b0cc8
Сommit 08ac0343c4

@ -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)

@ -0,0 +1,4 @@
#pragma once
#include <vector>
void find_minmax(const std::vector<double>& numbers, double& min, double& max);
Загрузка…
Отмена
Сохранить