摘要: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 using namespace std; 5 6 //摘自程序员面试宝典 7 //输入两个字符串,比如abdbcc和abc,输出第二个字符串在第一个字符串中的连接次序 8 //即输出125,126,145,146 9 template <class T>10 void print(vector<T> v)11 {12 for (typename vector<T>::iterator it = v 阅读全文
posted @ 2013-05-09 10:42 weiwei5987 阅读(222) 评论(0) 推荐(0) 编辑