I have two questions![]()
1.How can I append a vector to the other vector?
2.
Any replies will be appreciatedCode:std::vector<int*> myvector; int *pNum = new int; *pNum = 4; myvector.push_back(pNum); *pNum = new int; *pNum = 3; myvector.push_back(pNum); Now, I want to sort myvector. Therefore, the sequence will become 3, 4. I want to use stl sort function. How can I use that?![]()




Reply With Quote