摘要:
#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// << 阅读全文
摘要:
#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< 阅读全文