mercredi 23 août 2017

How do I resize vector (only rows)

How do I resize only row in 2d-vector ??

vector< vector<int> > matrix;
matrix.resize( num_of_row , vector<int>("I don't know how big the cols ") );

Aucun commentaire:

Enregistrer un commentaire