#include <iostream>
using namespace std;
main(){
while(1){
char A[20];
cout<<"please input the string!"<<endl;
cin>>A;
cout<<A<<endl;
}
using namespace std;
main(){
while(1){
char A[20];
cout<<"please input the string!"<<endl;
cin>>A;
cout<<A<<endl;
}
}
这个程序在输入输出为
please input the string!
qwet asfg回车
qwet
please input the string!
asfg
please input the string!
为什么?????