Hi,
I am new to programming.. and am studying IT at Uni
Over the weekend, I managed to write a java class that handles errors and loops until receiving valid input for a range of different datatypes. I am looking to write something like this in C (as my other subject deals with C). I have been googling etc and still have not really come up with what I want. Now I am aware that C++ has the try/catch option like Java, but what do I have available in C? The books I looked at didnt address my issue, and I have skipped around trying to find an answer, so i thought i might try here.
What do I do to make sure that my scanf ("*i", &myInt) statements get their correct input and not some char that makes it fall through the questionnaire in my code ..and so,..?
Help??
Thanks.. in advance.
Nate