07/09/27 00:07:06
>>391
#include<string.h>
#include<iostream>
using namespace std;
int main(){
char s[]="ABCDEFGHIJKLMN";
int size = strlen(s);
char*end = s + size;
int shift;
while(cout << "どれだけシフトしますか--> ",cin>>shift){
shift %= size;
if(shift < 0)shift += size;
rotate(s,end-shift,end);
cout << s << endl;
}
cout<<endl;
}