Declaring VariablesCharacter InputDetecting Input ProblemsInput of Real NumbersDetecting Problems with NumbersDetecting More General ProblemsA Function for Input with Some TestsStarting with a Failing TestBreaking Your Code into FunctionsStarting with a Failing Test, AgainTesting Bad InputRefactorCalling Your New Function from mainUnderstanding Variables, std::cin, and Functions in DepthClearing Input ErrorsMore on FunctionsConclusion