diff options
-rw-r--r-- | lingo.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lingo.cpp b/lingo.cpp index 3391c30..8f972e3 100644 --- a/lingo.cpp +++ b/lingo.cpp | |||
@@ -311,6 +311,14 @@ public: | |||
311 | { | 311 | { |
312 | canonical_attempt.erase(canonical_attempt.find("||"), 2); | 312 | canonical_attempt.erase(canonical_attempt.find("||"), 2); |
313 | } | 313 | } |
314 | while (canonical_attempt.find(" ") != std::string::npos) | ||
315 | { | ||
316 | canonical_attempt.erase(canonical_attempt.find(" "), 1); | ||
317 | } | ||
318 | while (canonical_answer.find(" ") != std::string::npos) | ||
319 | { | ||
320 | canonical_answer.erase(canonical_answer.find(" "), 1); | ||
321 | } | ||
314 | 322 | ||
315 | std::cout << "\"" << canonical_attempt << "\"" << std::endl; | 323 | std::cout << "\"" << canonical_attempt << "\"" << std::endl; |
316 | if (canonical_attempt == canonical_answer) | 324 | if (canonical_attempt == canonical_answer) |