Hey guys, quietly so we don't frighten anyone, but someone here is using a goto , it's true, look...
http://cboard.cprogramming.com/showt...threadid=33368
Printable View
Hey guys, quietly so we don't frighten anyone, but someone here is using a goto , it's true, look...
http://cboard.cprogramming.com/showt...threadid=33368
[hushed] I thought that was a myth! [/hushed]
*cough*aaaaarrrgggghhhh!!!!*cough*
:p
Hmmm. I hope the poster of that thread was not taught to do so... :(
Yeah...he should goto....*ahem*
enough said
I wonder why C++ was equiped with a goto statement anyway,
I mean it's totally wothless, it's bad code.
Propably for people who want's a (bad) easy way out
Ya know... I never thought I'd need a goto statement either, but I actually used one the other day. It's not in a loop or anything... I just jump past some code with it. I didn't feel like using a giant if statement.
>>I wonder why C++ was equiped with a goto statement anyway, I mean it's totally wothless, it's bad code.
Why is it bad code? I mean if you think about it, the most contrived language out there, Ada, has goto. If it were really that bad then why do all these languages have it? If goto is the most natural solution then that's what you should use, I don't see what all the fuss is about. :-)
C++ retains the goto for backward compatibility. I don't know what ADA's excuse is. ADA is a mess isn't it.
>>ADA is a mess isn't it.
You can say that again :-)
What a rare sight indeed! I've only ever seen them in captivity... these wild ones look quite a bit more fierce.
Hmm...
Has anyone ever seen the commercial with the miniture house hippos in it? If only one were made about goto...
[Crocodile Hunter voice]
Crikey, she's beauuuuutiful!
With BASIC? euhm...noQuote:
Originally posted by adrianxw
C++ retains the goto for backward compatibility.
>>> With BASIC? euhm...no
With C :rolleyes: