From a6aa3d3ca0015fed7788b1ab35f7bebebea88cbc Mon Sep 17 00:00:00 2001 From: VeretennikovMA Date: Sun, 26 May 2024 20:16:42 +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=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index f7245f8..23c419b 100644 --- a/main.cpp +++ b/main.cpp @@ -15,10 +15,17 @@ struct Input { }; Input -input_data(istream& Newcin) { +input_data(istream& Newcin){ size_t number_count; cerr << "Enter number count: "; Newcin >> number_count; + bool prompt; + cerr << "Do you want any prompts? Enter 'true' if yes, 'false' if no: "; + Newcin >> prompt; + if (prompt){ + cerr << "Prompt"; + } + Input in; in.numbers.resize(number_count); cerr << "Enter numbers: ";