摘要: #include <iostream>#include <string>#include <vector>#include <algorithm>using namespace std;int main(){vector<int> nTestNum;for (int i = 0; i <= 10; i++){nTestNum.push_back(i);}// cout<<nTestNum.at(2)<<endl// <<nTestNum.at(1)<<endl// << 阅读全文
posted @ 2011-12-04 22:13 rookieeeeee 阅读(117) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string>using namespace std;int main(){// string a("fuck");// string b(a,2);// char str[] = "wonderful";// string c(str+3,str+6);char a[10] = "greatful";char *p = a;cout<<p<<endl;cout<<*p<<endl;p++;cout< 阅读全文
posted @ 2011-12-04 14:42 rookieeeeee 阅读(101) 评论(0) 推荐(0) 编辑