From 8815b098c653c7afebef5b8caae72a3d4df007ce Mon Sep 17 00:00:00 2001 From: TroyanovDS Date: Fri, 2 Jun 2023 15:05:11 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D1=80=20bool=20prompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 7b7df19..5e2bfb4 100644 --- a/main.cpp +++ b/main.cpp @@ -19,19 +19,20 @@ Input input_data(istream& inx) { +bool prompt = true; size_t number_count; -cerr << "number_count= "; +if (prompt)cerr << "Input amount of numbers: "; inx >> number_count; Input in; in.numbers.resize(number_count); -cerr << "numbers: "; +if (prompt) cerr << "Input some numbers: "; for (size_t i = 0; i < number_count; i++) { inx >> in.numbers[i]; } -cerr << "bin_count= "; +if (prompt) cerr << "Input amount of promejutkov: "; inx >> in.bin_count; in.fill.resize(in.bin_count);