I know there is a similar question for this but it doesn't include classes and I couldn't make it work.
class temp
{
int r, c;
int** array;
public:
temp()
{
r = 0;
c = 0;
(*array)[c] = new int[r][c];
}
};
I tried this but I keep getting an error.