From 8708b5e7e0c151adbab3c2f9036c5cde698d2ce1 Mon Sep 17 00:00:00 2001 From: LiTekho Date: Mon, 24 Apr 2023 14:30:03 +0300 Subject: [PATCH] code: updated to 5 --- text.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 text.cpp diff --git a/text.cpp b/text.cpp new file mode 100644 index 0000000..0fe1348 --- /dev/null +++ b/text.cpp @@ -0,0 +1,18 @@ +#include +#include +#include +#include +#include "text.h" + +using namespace std; +void show_histogramm(vectorbins) +{ + for (size_t i = 0; i < bins.size(); i++) + { + cout << bins[i] << "|"; + for (size_t j = 0; j < bins[i]; j++) + cout << "*"; + cout << endl; + } + return; +}