array!!!!!

hi experts,
I have to say, arrays dont likes me T_T
i have a code:
1
2
3
4
5
6
7
8
class AA{
 private:
  int *x;
 public:
  AA(int a, int b){
   x=new int[a][b];  //ERROR!!
  }
};


1)what i want to know is WHY ERROR???(explain it as u explain to a newbie)

2)How do i solve the problem?

Thanks for reading~
int [a] [b] is of type int**
http://www.cplusplus.com/forum/articles/7459/
wow thx alot dude...2 line of sentence solved my problem....
sorry for my laziness to search =DDD
Topic archived. No new replies allowed.