Usually, we would like to get each word from a string, for example, str is the string type, it likes " abc defg hijk ". You want to print every word from this string respectively, is there any good way? Of course, we can make it by using some functions, such as find_first_of, find_first_not_of etc. Finally, there are some other ways to complete this.
[1]
[2]
[3]