Quote:
Originally posted by Valmont
Goto's are evil.
|
They're only evil if you dont know what you're doing.
cracksevi, the code could have been written as:
Code:
#include <iostream.h>
int main ()
{
int n=10;
while(n > 0)
{
cout << n << ", ";
n--;
}
cout << "FIRE!";
return 0;
}
The execution will jump to the
loop lable in the begining of the code, as long as the
if (n>0) condition is true.