i have developed a program.lot of text and numeric inputs.
input needs to be validated.
1) All the validation is done right after we read it in by cinn>> ?
2) There might be lot of numeric data to read. and if we each time type out the validateion for the string,then NO code-reuse. .if we create a validation class,and have validate Int,validate string,will that be correct?wrong?
whats the best to design a program which requires lot of numeric and string input and needs to be validated.