diff options
Added work from today's practice
1 files changed, 15 insertions, 0 deletions
| -rw-r--r-- | Year 1/Object-oriented Programming/13-Practice-31.05.2022/Label.h | 15 |
diff --git a/Year 1/Object-oriented Programming/13-Practice-31.05.2022/Label.h b/Year 1/Object-oriented Programming/13-Practice-31.05.2022/Label.h new file mode 100644 index 0000000..093ddab --- /dev/null +++ b/Year 1/Object-oriented Programming/13-Practice-31.05.2022/Label.h @@ -0,0 +1,15 @@ +#include "Control.h" +#include "String.h" +#include <iostream> + +class Label : public Control { + String str; + +public: + void setDataDialog() override { + std::cout << "Enter new label: "; + char buffer[1024]; + std::cin.getline(buffer, 1024); + str = String(buffer); + } +}; |
