Registered Member
|
I need to declare a Matrix with a row size of "sizz", but it can not work. the error : " the int is not usable in a constatn expression "
How to resolve this problem.
|
Registered Member
|
The problem is, that you are trying to create fixed size matrices at runtime
allocates a matrix on the heap and it should work. If sizz is a constant for all matrices and known at compile time, then you can use your approach depending on the C++ version |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]