getline输入一行不然到了空格就结束了
密码翻译
http://www.nowcoder.com/questionTerminal/136de4a719954361a8e9e41c8c4ad855
include
include
include
using namespace std;
int main(){
string str;
while(getline(cin,str)){//循环输入一行
for(int i=0;i<str.size();++i){
if(str[i]=='z')
str[i]='a';
if(str[i]=='Z')
str[i]='A';
if(str[i]>='a'&&str[i]<='y')
str[i]++;
if(str[i]>='A'&&str[i]<='Y')
str[i]++;
}
cout<<str<<endl;
}
return 0;
}