Its great to keep it thoroughly commented.. it only helps, and it doesnt hurt
Nice implimentation, I might go like this if you put error handling:
Code:
int number; // declare an integer named number
while( number == 0 || number > 5 ) { // the symbols || is "or"
cout << "Pick a number from 1-5: ";
cin >> number;
cin.ignore();
if( number == 0 || number > 5 ) {
cout << "Error, incorrect choice: " << number;
} else {
cout << "Great! you chose: " << number << endl;
} // put an endl in there because youre wrapping back up there.
}
cin.get(); // used to hold the console window open