#include <iostream.h>
#include <vector>
using namespace std;
class CEDMap
{
public:
vector<vector<int> > m_vvecGoalMap;
};
void main()
{
int naGoalMap[3][3] = {1, 2, 3, 4, 5, 6, 7, 8, 0};
CEDMap a;
vector<int>vec1 ,vec2,vec3;
for(int i=0;i!=3;i++)
vec1.push_back(naGoalMap[0][i]);
for(i=0;i!=3;i++)
vec2.push_back(naGoalMap[1][i]);
for(i=0;i!=3;i++)
vec3.push_back(naGoalMap[2][i]);
a.m_vvecGoalMap.push_back(vec1);
a.m_vvecGoalMap.push_back(vec2);
a.m_vvecGoalMap.push_back(vec3);
for(int j=0;j!=3;j++)
for(i=0;i!=3;i++)
cout<<(a.m_vvecGoalMap[j])[i]<<endl;
}
|