Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string getCondition(string sentence)
- {
- while (sentence[0] == ' '){
- sentence.erase(0, 1);
- }
- while ((sentence.find(" ")) > 0) {
- sentence.erase(sentence.find(" "), 1);
- }
- while (sentence.back() == ' ') {
- sentence.erase(sentence.back(), 1);
- }
- return sentence;
- }
Advertisement
Add Comment
Please, Sign In to add comment