With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
I noiced that the test "if(i<2|i>13)" is using a BITWISE OR (indicated by a single "|") to combine the comparison expressions. It should instead use a LOGICAL OR ("||").It does work as is, but it is dependent on the compiler's internal representation of boolean values.Also applying good practice spacing rules, the corrected test would be:if (i < 2 || i > 13)
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.