#include #include using namespace std; int main () { vector v; v.push_back(1); v.push_back(2); v.push_back(4); cout << "Dimensione v " << v.size() << endl; cout << "primo elemento " << v[0] << " secondo " << v[1] << endl; for (unsigned int i = 0; i::const_iterator iv=v.begin(); iv!=v.end(); ++iv ) { cout << "V " << (*iv) << endl; } }