// how to fill a vector from keyboard, if you don't know the nr. of.. #include #include #include #include using namespace std; int main() { vector t; // a vector has to be defined together with the type; int e; cout<<" - the elements of the vector: "; while(cin>>e) // you can read in values as long as the type is the same; { t.push_back(e); // appends to the already existing elements; } for (int i=0; i<(int)t.size(); ++i) //the size is unsigned; converts to integer; { cout<<"t[" <