For the if statement to do what it was intended,
if(datatype != 1 || datatype != 2)
should be changed to
if(datatype != 1 && datatype != 2)
[HD Pg 294, Sec. 10.4.0 - exceptions-thrown-by-application-programmerexceptions-thrown-by-programmer]
Moderator: admin
-
- Posts: 221
- Joined: Mon Nov 26, 2018 2:43 pm
- Contact:
-
- Site Admin
- Posts: 10403
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: [HD Pg 294, Sec. 10.4.0 - exceptions-thrown-by-application-programmerexceptions-thrown-by-programmer]
Right. Added to errata.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 8 guests