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