Created
April 12, 2023 14:26
-
-
Save Caesar-Victory/573490e2e534fbff8b2fb776c3429b62 to your computer and use it in GitHub Desktop.
#C++
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| auto getWords = [&](string &sentence) -> vector<string> { | |
| vector<string> ans; | |
| istringstream iss(sentence); | |
| string word = ""; | |
| while (iss >> word) { | |
| ans.push_back(word); | |
| } | |
| return ans; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment