a little help if possible

If it doesn't fit .. It fits here .. - -

a little help if possible

Postby J. » Fri Nov 07, 2008 6:21 am

was wondering if anyone could help me get a grip on an article

http://www.ecn.purdue.edu/ParaMount/pap ... 68goto.pdf

i cant figure out from it why he considers the goto statement to be harmful, if anyone could give me a hint or some help it would be greatly appreciated and i will give you a cake and a cup of tea or if your american a cup of coffee and a doughnut :P
[center]
Striking software Beta Team leader | [url=http://twitter.com/strikingsw]Follow Striking Software on
J.
Major
Major
 
Posts: 1273
Joined: Sat Nov 24, 2007 7:35 pm
Location: Herts/Worcs UK

Re: a little help if possible

Postby Brett_Henderson » Fri Nov 07, 2008 7:31 am

A simple "go to", though it is usually preceded by some sort of condition (if, then, else), is an open-ended path through the flow-chart. It's like sending your child out into the world, hoping for the best.

The module of code in control shouldn't just let the process stray off on its own (unless that module has completed its task) ("go to" is ok as the last command in a module).

The better way to hande "go to" (and you see it better in a flow-chart), is something like,
Last edited by Brett_Henderson on Fri Nov 07, 2008 7:36 am, edited 1 time in total.
Brett_Henderson
Major
Major
 
Posts: 3403
Joined: Fri Oct 08, 2004 7:09 am

Re: a little help if possible

Postby J. » Fri Nov 07, 2008 10:38 am

wow thankyou very much brett :)
[center]
Striking software Beta Team leader | [url=http://twitter.com/strikingsw]Follow Striking Software on
J.
Major
Major
 
Posts: 1273
Joined: Sat Nov 24, 2007 7:35 pm
Location: Herts/Worcs UK

Re: a little help if possible

Postby Mushroom_Farmer » Fri Nov 07, 2008 3:53 pm

Purdue: 'Nuff said! ;D
Image

"We're just sitting here trying to put our PCjrs in a pile and burn them. And the damn things won't burn. That's the only thing IBM did right with it - they made i
User avatar
Mushroom_Farmer
Major
Major
 
Posts: 1633
Joined: Fri May 26, 2006 11:54 pm
Location: Indiana, USA


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1041 guests