Changeset 1188 for code/branches/console/src/orxonox/Orxonox.cc
- Timestamp:
- Apr 26, 2008, 2:50:04 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/orxonox/Orxonox.cc
r1151 r1188 129 129 { 130 130 public: 131 static voidcalculate(const std::string& calculation)131 static float calculate(const std::string& calculation) 132 132 { 133 133 ExprParser expr(calculation); … … 141 141 std::cout << "Warning: Expression could not be parsed to the end! Remains: '" 142 142 << expr.getRemains() << "'" << std::endl; 143 return expr.getResult(); 143 144 } 144 145 else 146 { 145 147 std::cout << "Cannot calculate expression: Parse error" << std::endl; 148 return 0; 149 } 146 150 } 147 151 };
Note: See TracChangeset
for help on using the changeset viewer.