[prog] switch statement

Kathryn Hogg kjh at flyballdogs.com
Thu Dec 16 15:13:12 EST 2004


Wolf Rising said:
> eureka! Thank you :-) I can follow changing the while to a do/while, and
> this may be a foolish question, but how did you know the program
> needed the if statement?

its just second nature after 20 some years of developing software.

But it is a pretty general idiom to get input, validate the input, and
then process the input if and only if the input is valid.

-- 
Kathryn
http://womensfooty.com



More information about the Programming mailing list