eric76 said:CDUB98 said:Quote:
abomination of the command GOTO
DAMMITT!!
That's how us stupid people got things work.
Every computer that I know of uses the equivalent of GOTO's at the assembler level.
Also, GOTO's can be very useful even today.
For example, suppose you have a C function in which several conditions can result in errors. Instead of having to do all of your cleanup every time you need to return, you can put a GOTO to the end of your function, do all of your cleanup, and then return.
Suppose that the function opened five files that need to be closed before returning, instead of having to close them for every possible return, you just have to close them them once at the end leaving less room for errors.
When I was a grad student, I was often the one selected to handle the numerical analysis labs. The worst abuse of GOTO's that I ever saw was when dong the numerical analysis labs one year. One student turned in a program with a GOTO arter almost every line. When I asked about it, the student said that she had dropped the card deck and things got out of order, so she reordered them with GOGO cards instead of sorting them in order.
YOU DO WHAT?!
Use micro-scopes!!

