标签:style blog color os io line
1 #include<iostream> 2 #include<string> 3 using namespace std; 4 int main(){ 5 string s; 6 int n; 7 getline(cin,s); 8 cin>>n; 9 while(n--) 10 s=s.substr(1)+s[0]; 11 cout<<s<<endl; 12 return 0; 13 }
字符串-05. 字符串循环左移(20),布布扣,bubuko.com
标签:style blog color os io line
原文地址:http://www.cnblogs.com/gnodidux/p/3820070.html