while(cin >> par1 >> par2 >> par3){ // get inputs
cout << par1 << par2 << par3 << endl;
I want to read three inputs with cin,as long as three inputs exist,the loop works good.
But if the user enters two inputs,this time it waits for the next input,
or if the user enters four inputs,it takes first three inputs.
How can I make this input error checking with cin?
I dont want to read a whole line and split it into tokens if there is an acceptable solution? ...