|
if(reply != "Stars" || reply != "S" || reply != "Planets" || "P" || ); {
See the error here?
Try/catch is used to trap runtime errors. For example, function mis-spelled fucntion. Not a validation tool.
__________________
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.
Last edited by Philip M; 10-09-2012 at 03:36 PM..
|