samedi 27 juin 2015

N-dimensional std::vector to N-dimensional C-array

How do you convert a N-dimensional std::vector to the corresponding N-dimensional C-array?

E.g. std::vector<std::vector<int>> to int arr[n][m], where n is the dimension of the outer vector and m of the inner vector?

Aucun commentaire:

Enregistrer un commentaire