摘要:
直接用string类里面的一些函数先排序,然后用最短的那个字符串的子串跟其他字符串的子串比较。。。代码如下: 1 #include <iostream> 2 #include <string> 3 #include <algorithm> 4 using namespace std; 5 6 bool cmp(const string& a,const string& b) 7 { 8 return a.size() < b.size(); 9 }10 11 void inverse(string& aim)12 {13 str 阅读全文
posted @ 2012-07-26 11:04
Shirlies
阅读(273)
评论(0)
推荐(0)
浙公网安备 33010602011771号