关于std::vector中erase的用法http://www.cplusplus.com/reference/vector/vector/erase/ #include <vector> struct WordCoordinate { int x; int y; int z; }; struct Mypoint { int x; int y; }; int main() { std::vector<WordCoordinate> m_worldCoorPoint; std::v
1. 包含一个头文件: 1 #include <vector> 2. 申明及初始化: std::vector<int> first; // empty vector of ints std::vector<,); // four ints with value 100 std::vector<int> third (second.begin(),second.end()); // iterating through second std::vector<in