Do NOT Follow this advice!!!!1) We do NOT - repeat NOT - recommend bad coding practices here!2) We do NOT - repeat NOT - write the code for people!3)
Ooooh boy! Here we go again, confusion run wild!
I thought I was perfectly clear in condemning the use of goto:label statements in regular program code. Here is what I said:
<< Now, I used a goto statement to make your program work. However, goto is bad bad programming practice. It's EVIL! LOL - not really evil, after all, it is a valid programming statement. However, for reasons to be discussed later, if you use goto in your program like I did, it will be condemned by academia forever. >>
<< it will be condemned by academia forever >>..... so she will submit goto's to her instructor??? I think not! I just assumed that by my condemnation of goto:label it would NOT be thought I was RECOMMENDING the practice! Yeah, I guess assumption killed the cat!
And I never said that I wrote the code, it was simply her OWN code that I added a goto statement to, and moved one line down. I let her copy and paste it to make it easier to avoid typos. This is the equivalent of a code snippet. And adding the goto statement was NOT solving the problem for her, it was only used to show and suggest program logic to solve her problem - she was to see the …