Or you may also try int ** matrice; but is highly NOT RECOMMENDED - it is simply more advanced and it involves a variety of dangers. Also it requires quite a bit of time to set up and get it running for good :)
@cire
Your idea is a very good one but if the OP wants to dynamically resize a matrix it will be a problem. Dynamic versions are much more flexible and customizable than static versions - if performance is not absolutely critically important dynamic ones are much better.
Your idea is a very good one but if the OP wants to dynamically resize a matrix it will be a problem.
At the point in time which this becomes necessary for the OP, a more complete approach will be appropriate. Since I'm not looking to fulfill all of the OPs future needs and he/she would benefit from reimplementing things if the need arises, (and since I don't buy into your argument anyway) I'm perfectly fine with using std::array here.
Thanks for your subjective-opinion-presented-as-fact, though. Much appreciated.