From b9d5c4c35de30dbff55036d9fa1e125d12130850 Mon Sep 17 00:00:00 2001 From: BushmanovAS Date: Mon, 27 May 2024 07:45:45 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=BF=D0=BE=D0=B4=D1=81=D0=BA=D0=B0?= =?UTF-8?q?=D0=B7=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 4704d3f..2528297 100644 --- a/main.cpp +++ b/main.cpp @@ -32,7 +32,11 @@ Input input_data(istream& in, bool prompt = true) int main() { - Input in = input_data(cin); + bool show_prompts; // User choice: true to show prompts, false to hide them + cout << "Show prompts? (1 for yes, 0 for no): "; + cin >> show_prompts; + + Input in = input_data(cin, show_prompts); vector bins = make_histogram(in.numbers, in.bin_count); - show_histogram_svg(bins); + show_histogram_text(bins); }