#include<iostream>
int main()
{
char ch;
std::cout << "Type, and I shall repeat.
";
std::cin.get(ch);
while (ch != '.')
{
if (ch == '
')
std::cout << ch;
else
std::cout << ch + 1;//char强转成int了 输出int
std::cin.get(ch);
}
std::cout << "
Please excuse the slight confusion.
";
std::cin.get();
std::cin.get();
return 0;
}