diff options
Diffstat (limited to 'usth/ICT2.2/labwork/3/C++/button-test.cc')
-rw-r--r-- | usth/ICT2.2/labwork/3/C++/button-test.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usth/ICT2.2/labwork/3/C++/button-test.cc b/usth/ICT2.2/labwork/3/C++/button-test.cc new file mode 100644 index 0000000..7164b2f --- /dev/null +++ b/usth/ICT2.2/labwork/3/C++/button-test.cc @@ -0,0 +1,14 @@ +#include <iostream> + +#include "button.h" + +using namespace std; + +int +main () +{ + Button butt ("foo", "bar"); + butt.depress (); + butt.undepress (); + cout << "button " << butt.label << " color " << butt.color << endl; +} |