From 62b43d9755ac4b664b7cc83827cf632d52f62171 Mon Sep 17 00:00:00 2001 From: "A(PozdiayevaAV)" Date: Thu, 30 Oct 2025 15:29:42 +0300 Subject: [PATCH] =?UTF-8?q?build;=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20?= =?UTF-8?q?=D0=B3=D0=B8=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- text.cpp | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 text.cpp diff --git a/text.cpp b/text.cpp new file mode 100644 index 0000000..40d28e8 --- /dev/null +++ b/text.cpp @@ -0,0 +1,67 @@ +#include +#include +#include "text.h" + +using namespace std; + +void +show_histogram_text(vector bins, size_t bin_count) +{ + + size_t max_count=0; + for (size_t i =0; i=10)) + { + cout<<" "<76) + { + size_t height = 76 * (static_cast(bins[i]) / max_count); + for(size_t j=0; j<=height; j++) + { + + cout<<"*"; + } + } + else + { + for(size_t j=0; j<=bins[i]-1; j++) + { + + cout<<"*"; + } + } + + + + cout<