|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming | |
[C++] Goto line command help
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | |||||||||||||
|
PC Gamer
|
Hi again,
I was wondering if there is a command or some script out there that can take me back to a certain line in the script to help with looping. I've got some help already on looping but it's beyond me and i'm new to C++. I'm after something like the standard MSDOS forkbomb goto line script. Thanks in advance. Repping for help.
__________________
Please note:
Stuart (A.K.A. Overlord), you are evil (you know who you are) Ninjas beat Pirates Ninjas beat Samurai Chuck Norris draws even with the best Ninjas Ninjas work on the deli system (The old one, the new one is just whacked) IT People do little to no work (that's why it's a great line of work) Ninjas beat Pirates (just to make sure you know) ![]()
|
|||||||||||||
|
|
|
|
|
#2 (permalink) | |||||||||||||
|
:wheee:
![]() |
Well, there is goto in C++, but any code that uses it is considered VERY poor. In one of the C++ books I read through, the author said he only had to use goto once in ten years of programming.
__________________You should alter your code to work with while loops, for loops, ifs, switches, dump trucks, polar bears, or anything else besides goto.
|
|||||||||||||
|
|
|
|
#3 (permalink) | ||||||||||
|
nVidia Enthusiast
|
If you are having trouble following loops, try the step into function, it lets you trace the code and see exactly where things are being moved around.
|
||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|