1.++ch,代表字符+1输出,比如输入是a,那么输出是b
#include<iostream>
using namespace std;
int main()
{
char ch;
cout << "输入,我将重复\n";
cin.get(ch);
while (ch != '.')
{
if (ch == '\n')
cout << ch;
else
cout << ++ch;//将ch往后加1输出字符
cin.get(ch);
}
cout <<"OK"<< endl;
system("pause");
return 0;
}#include<iostre