Hi,
I am learning c++ and have written an equation that takes 5 values into cin ( eg cin >>v>>w>>x>>y>>z) but I want to return an error mesage to the inputter if they pass in more that 5 items. Could anyone advise what syntax would be advisable for that please.
Many thanks
Bystander
I am learning c++ and have written an equation that takes 5 values into cin ( eg cin >>v>>w>>x>>y>>z) but I want to return an error mesage to the inputter if they pass in more that 5 items. Could anyone advise what syntax would be advisable for that please.
Many thanks
Bystander