Modify cin.ignore line (22) to add numeric_limits and delimiting characters.