O.P. C++ Bidimensional Array Help! :P
Hey guys! I'm learning C++ and everything is... was ok. hahaha. I wanted to do a class SquareMatrix and in the constructor get a N integer to create my matrix NxN.
In java that would be:
class SquareMatrix{
private int matrix[][];
SquareMatrix(int n){
matrix = new int[n][n];
}
}
But in C++ I can't do this, and can't find a way to do it. Help neede plz! Thank you in advance!
|