diff options
Added work from today's practice
1 files changed, 14 insertions, 0 deletions
| -rw-r--r-- | Year 1/Object-oriented Programming/13-Practice-31.05.2022/CheckBox.h | 14 |
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 <iostream> + +class CheckBox : public Control { + String str; + bool status; + +public: + void setDataDialog() override { + std::cout << "Should be turned on? [0/1] "; + std::cin >> status; + } +}; |
