注意:最后一个单词后面不能再输出空格 // 判断是“构成单词的字符” 还是“非构成单词的字符” bool isWordCharacter(char c) #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; // 判断字符是否是构成单词的字符 bool isWordCharacter(char c); int main() { string sentence; while(getlin...