- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/Query/UnsignedIntTextQuery.cpp
r955b91 rf10b0c 28 28 29 29 30 TextDialog::UnsignedIntTextQuery::UnsignedIntTextQuery( std::string title, std::string _description) :31 Dialog::UnsignedIntQuery( title,_description)30 TextDialog::UnsignedIntTextQuery::UnsignedIntTextQuery(Parameter<unsigned int> ¶m, std::string title, std::string _description) : 31 Dialog::UnsignedIntQuery(param, title,_description) 32 32 {} 33 33 … … 39 39 badInput = false; 40 40 std::cout << getDescription() << ": "; 41 std::cin >> tmp; 41 unsigned int temp_uint; 42 std::cin >> temp_uint; 42 43 if(std::cin.fail()){ 43 44 badInput=true; … … 46 47 std::cout << "Input was not a number!" << std::endl; 47 48 } 49 tmp.set(temp_uint); 48 50 } while(badInput); 49 51 // clear the input buffer of anything still in the line
Note:
See TracChangeset
for help on using the changeset viewer.