Code:#include <iostream> #include <vector> #include <windows.h> using namespace std; using std::vector; int main() { vector<int> vi; for (int i = 0; i < 100; i++) { Sleep(5000); vi.push_back(i); cout< <<endl; //heres the prob , i want to cout vi[0] then vi[1] Sleep(5000); //as the for loop assigns values to the vector } return 0; }