cin.get()
it works with and without the ' cin.ignore();' and 'cin.get()' so what are they for?Code:In this basic thing(don't know what you would call it) #include <iostream> using namespace std; int main () { int num; cout<<"Insert number:"; cin>>num; cin.ignore(); cout<<"You choose:"<<num<<"\n"; cin.get(); }