/* 题目:给定两个字符串s1和s2,要求判定s2是否能被s1做循环移位得到的字符串所包含例如,给定s1 = AABCD, s2 = CDAA,返回true,给定s1 = ABCD, s2 = ACBD,返回false*/#include #include using namespace std;bool isrotate(string s1,string s2); int main(){ string s1,s2; cout > s1; cout > s2 ; if (isrotate(s1,s2)) cout ABCDA -> ABCDAB -> ... Read More
posted @ 2013-09-29 23:37 迷路君的博客 Views(204) Comments(0) Diggs(0) Edit