I have a class that works something like this:

Code:
class bleh {
public:
      char *charArray;
      bleh(int size);
private:
};

bleh::bleh(int size) {
     charArray = new char[size];
}

then I realized that I wanted charArray to be 2d
however,
Code:
class bleh {
public:
      char *charArray;
      bleh(int size1, size2);
private:
};

bleh::bleh(int size1, int size2) {
     charArray = new char[size1][size2];
}
doesn't werk

the only thing that I can get to work is somethint like:
Code:
class bleh {
public:
      char charArray[100][100];
      bleh(int size);
private:
};

bleh::bleh(int size) {
}
Keeps yelling about either (based on small changes on my part):
A) doesn't like pointer
B) can't cast
C) doesn't like that a 2d array have variables for it's size

Any clues how it can be done?