As long as you do not deal with very big matrices, It does not make much sense to fall back to the C-style arrays in favor of the C++-style collections from either the STL or Qt's own container classes. To implement a matrix I suggest to use QVectors and have a vector of vectors to implement the two dimensions. Depending on your application, you can decide wether to have a list of rows or a list of columns.




Reply With Quote
Bookmarks