Add element to two demension Vector with no fixed size.
My question is very easy if this vector has a fixed size. for example:
But that is not obvious when you don't fixed size for vector. You cannot use push_back like one demension array. This is my example:
vector< vector<int> > matrix(5,vector<int>(5,0));
So, that's my problem. Who know how to code it, help me please.
vector< vector<int> >matrix;
matrix.push_back(5); //NOT OK. So How can.
thanks for ton :)