正在加载图片...
using namespace std: int out[3][2]={1,2 3,4 5.63 rector <int'>v1 v1.push_back(out[0]) v1.push back(out(1]): v1.push_back(out[2]】 cout <v1[0][0]<endl;//1 cout <vi[0][1]<endl://2 cout<v[1][]<<endl://3 cout<<v1[1][1】<<end1://4 cout <<vI[21[01 <endl://5 out<vi[][1]<end1://6 return 0; using namespace std; int out[3][2] = { 1, 2, 3, 4, 5, 6 }; vector <int*> v1; v1.push_back(out[0]); v1.push_back(out[1]); v1.push_back(out[2]); cout << v1[0][0] << endl;//1 cout << v1[0][1] << endl;//2 cout << v1[1][0] << endl;//3 cout << v1[1][1] << endl;//4 cout << v1[2][0] << endl;//5 cout << v1[2][1] << endl;//6 return 0; }
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有