解题思路:通过维护前一次的不同字节的出现次数和当前字节的出现次数,判断是否将当前字节加入栈中。#include<iostream>#include<vector>#include<string>#include<algorithm>#include<sstream>#include<stack>using namespace std;/**@breif 输出字符串的自动校对,去掉重复的字节*@param string 输入的字符串*@return string CorrectWord*/void CheckStr(stri...