From 0132140dad1377cd3963654d718a1c6f0d3792fc Mon Sep 17 00:00:00 2001 From: SavinSA Date: Mon, 22 Apr 2024 14:30:42 +0300 Subject: [PATCH] =?UTF-8?q?svg:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=D0=BB=D0=B8=D1=87=D0=B8=D1=8F=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B1=D0=B5=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 7eebd7d..cc64c2e 100644 --- a/main.cpp +++ b/main.cpp @@ -28,9 +28,13 @@ input_data() { cin >> in.bin_count; - cerr << "Enter stroke colour:"; + cerr << "Enter stroke colour without spaces or in code format:"; cin >> in.stroke; + if (in.stroke.find(' ')) { + cerr << "bad input"; + } return in; + } int main()