可以实现将用户输入的话再输出一遍。
#include <iostream>
using namespace std;
int main()
{
cout<<"==我是一只木的感情的复读机=="<<endl;
cout<<"请输入:";
while(1)
{
char aCh;
cin.get(aCh);
if('\n'!=aCh)
{
cout<<aCh;
}
else
break;
}
cout<<endl;
system("pause");
return 0;
}
还是一个很简单的程序。