Kagamin пишет:
Weed Wrote:it is impossible to create the struct of the object which will be arbitrary size (raised by a user) + to be able to set compile-time + should work with the structures of its type.this is mathematical matrix, for exampleMatix? Easy. class Matrix //can inherit from some generic base class { int[2] dims; int[][] data; //methods }
not just a matrix, see thread "struct inheritance need?" in this NG