Now I have to treat data in vector format. What I want to do now is to either insert ot erase an element to or from vector respectively. However, according to my current program that tookover from other people, when I want to create iterator, there are always error that
34 D:\research project CD\CAT\Simulation\PROGRAM\data.cpp `iterator' does not name a type
368 D:\research project CD\CAT\Simulation\PROGRAM\contentbalancing.cpp no matching function for call to `std::vector<double, std::allocator<double> >::erase(int)'