Porting Java to C++

Hi I'm trying to port this lines of Java code into C++.


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
ArrayList[][] grid = new ArrayList[300][150];
... 

for (int a = 0; a < this.gw; a++) {
      for (int b = 0; b < this.gh; b++) {
        this.grid[a][b] = new ArrayList();
      }
}

...

for (int a = 0; a < this.gw; a++) {
      for (int b = 0; b < this.gh; b++) {
        this.grid[a][b].clear();
      }
}

...

ArrayList al = this.grid[c][d];
int n = al.size();

for (int q = 0; q < n; q++) {
int j = ((Integer)al.get(q)).intValue();
}



Could someone please help me.

Thanks


Topic archived. No new replies allowed.