BeginnersC++ Lesson 17: Data Validation with String Stream

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

"These ppl are still out there" xD xD

ozdagap
Автор

Thanks. And I was thinking of converting string to char in order to use isalpha().
Then again, using cin.fail() would save more time.
Also remove system("pause"); - simply, not good

fredano
Автор

I tried typing 4d5 and it doesn't loop when it's supposed to.
Is there another way to >> or parse for the whole stringstream?

boko