1//使用迭代器全部输出2vector<int>::iterator t ;3for(t=a.begin(); t!=a.end(); t++)//a.begin()表示容器中的第一个元素位置,a.end()表示容器a中最后一个元素位置4cout<<*t<<"";//*t 为指针的间接访问形式, 意思是访问t所指向的元素值。 4)、向量的基本操作 View Code View Code 加:...