vector<int>vec(N,0); int* ptr=vec;
Can we do this to vector like arrays or we have to have iterators.what I want is to maintain a pointer pointing to elements of array.
Aucun commentaire:
Enregistrer un commentaire