Share your repls and programming experiences

← Back to all posts
EZInput - Restrictive Console Input Functions
CowNationz (53)

Tired of handling and stressing about edge cases with std::cin? Well worry no more. With EZInput, it does all the work for you. EZInput uses InputManager v1.0 instead of std::cin or any of it's alternatives in a set of 4 static functions with different types and allowed keys. EZInput is restrictive because it only lets the user input what is allowed in the return value. E.G. in getInt, EZInput only lets the user input 0-9 and casts on return.