OK - i've been working on this for a few minutes, I want this to keep looping until the user has entered 10 items....

Then i want to start displaying the values i need to:

Code:
#include <iostream>
#include <limits>

using namespace std;

int main()
{
    int number=10;
    cout << "Enter an integer: " << flush;
    while(!(cin >> number)){
        cin.clear();
        cin.ignore( numeric_limits<streamsize>::max(), '\n' );
        cout << "Invalid input, please try again: " << flush;
    }
    cin.ignore( numeric_limits<streamsize>::max(), '\n' );
    cout << "You entered: " << number << endl;
    
    cin.get();
}