From ccedf6f5d89f375580ff6af40296aab953f9cd09 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 31 May 2022 20:52:26 +0300 Subject: Added work from today's practice --- .../13-Practice-31.05.2022/CheckBox.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Year 1/Object-oriented Programming/13-Practice-31.05.2022/CheckBox.h (limited to 'Year 1/Object-oriented Programming/13-Practice-31.05.2022/CheckBox.h') diff --git a/Year 1/Object-oriented Programming/13-Practice-31.05.2022/CheckBox.h b/Year 1/Object-oriented Programming/13-Practice-31.05.2022/CheckBox.h new file mode 100644 index 0000000..b72089c --- /dev/null +++ b/Year 1/Object-oriented Programming/13-Practice-31.05.2022/CheckBox.h @@ -0,0 +1,14 @@ +#include "Control.h" +#include "String.h" +#include + +class CheckBox : public Control { + String str; + bool status; + +public: + void setDataDialog() override { + std::cout << "Should be turned on? [0/1] "; + std::cin >> status; + } +}; -- cgit v1.3.1-26-gb76a