code: написаны комментарии

main
TarasovEE 5 дней назад
Родитель 983c07c251
Сommit cdcef0e4b6

@ -3,6 +3,8 @@
#include <vector> #include <vector>
// Поиск максимального и минимального среди оценок.
void find_minmax(const std::vector<double>& numbers, double& min, double& max); void find_minmax(const std::vector<double>& numbers, double& min, double& max);
#endif // HISTOGRAM_INTERNAL_H_INCLUDED #endif // HISTOGRAM_INTERNAL_H_INCLUDED

@ -1,6 +1,8 @@
#include "text.h" #include "text.h"
using namespace std; using namespace std;
// Создание гистограммы в текстовом формате.
void show_histogram_text(vector<size_t>& bins, size_t bin_count) void show_histogram_text(vector<size_t>& bins, size_t bin_count)
{ {
const size_t SCREEN_WIDTH = 80; const size_t SCREEN_WIDTH = 80;

@ -3,6 +3,8 @@
#include <iostream> #include <iostream>
#include <vector> #include <vector>
// Создание гистограммы в текстовом формате.
void show_histogram_text(std::vector<size_t>& bins, size_t bin_count); void show_histogram_text(std::vector<size_t>& bins, size_t bin_count);
#endif // TEXT_H_INCLUDED #endif // TEXT_H_INCLUDED

@ -14,7 +14,7 @@ TEST_CASE("distinct positive numbers")
CHECK(max == 2); CHECK(max == 2);
} }
// Пустой вектор // пустой вектор
TEST_CASE("null vector") TEST_CASE("null vector")
{ {

Загрузка…
Отмена
Сохранить