Witam!
Mam problem z walidacja danych. Konkretnie chodzi o ten fragment kodu.
while(process!=1){
cout<<"number: ";
if(!(cin>>Number)) cerr<<"This is not a number"<<endl;
else process=1;
}
Kiedy wlaczam konsole i podaje bledne wejscie konsola mi sie zapetla i caly czas wyswietla mi:
Phone number: This is not a number
Co jest powodem takiego dzialania i jak to naprawic?
EDIT: ZDJECIE PROBLEMU

Brak Polskich znakow poniewaz uzywam klawiatury US Edit: Zmiana tagu