I am trying to create a class as such:
class CLASS { public: //stuff private: int x, y; char array[x][y]; };
Of course, it does
use vector.
#include class YourClass { public: YourClass() : x(read_x_from_file()), y(read_y_from_file()) { my_array.resize(x); for(int ix = 0; ix < x; ++ix) my_array[ix].resize(y); } //stuff private: int x, y; std::vector > my_array; };