Return back to a line

Hi guys!
I was programming a new game (text rpg)
I need to go back in a line. I know the command goto,
but from what i hear it is not practical (slow)
and most important of all it always shows me this problem:

expected identifier before '(' token|

Pls help me!
As a general rule saying you use goto will get you eaten by a velociraptor. You should consider using a loop.
Ha so true.
http://xkcd.com/292/
Last edited on
Hehe, funny!

goto is one of those C/C++ keywords I'd never like to use. It can lead to unexpected results, but if really done right, it can fix some problems. However, goto-statements tend to become a risky mess on the long run, so I don't recommend to use goto.
Last edited on
And your code will end up pretty messy...
Or do you mean gotoxy() ?? The command to set the cursor to a desired position inside a *shiver* windows terminal?
Well, if you need goto, Donanza, I'd say you need to reconstruct your code. Could you possibly show at least a bit of your project code? That way we can possibly guide you to do things another way around.
Topic archived. No new replies allowed.