https://sourcedexter.com/validating-user-input-in-c/
Input validation in C++