// cout是如何处理char和int的类型转换。
#include<iostream>
int main()
{
using std :: cin; using std :: cout;
char ch;cin.get(ch);while (ch!='.'){if ('\n'==ch) // value 放在ch前面,防止将“==”误用为“=”;cout << ch;else//cout << ++ch;cout << ch+1; // ch+1替换++ch 输出的是ASCII嘛,cout自动将ch类型转换为int型cin.get(ch);}cout <<"\nPlease excuse the slight confusion.\n";return 0;}cout << "Type, and I shall repeat.\n";