From 8f304827ef7e9718cb7cb62f1881ff44f38c9ccb Mon Sep 17 00:00:00 2001 From: KoldinaAE Date: Sat, 24 May 2025 21:08:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82?= =?UTF-8?q?=D1=80=D0=B0=20bool=20prompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index e679b6b..0825c78 100644 --- a/main.cpp +++ b/main.cpp @@ -10,10 +10,13 @@ struct Input{ size_t bin_count{}; }; Input -input_data(istream& in) +input_data(istream& in, bool prompt=false) { Input inn; size_t number_count; + if (prompt){ + cerr << "Enter count, numbers and bin_count\n"; + } in >> number_count; inn.numbers.resize(number_count);