Overclock.net - Overclocking.net
     
 
Home Gallery Reviews Blogs Register Today's Posts Mark Forums Read Members List


Go Back   Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming

Reply
 
LinkBack Thread Tools
Old 07-16-09   #1 (permalink)
PC Gamer
 
Snogus's Avatar
 
intel nvidia

Join Date: Dec 2008
Location: Australia
Posts: 151
Blog Entries: 4

Rep: 6 Snogus Unknown
Unique Rep: 6
Folding Team Rank: 624
Trader Rating: 0
Default [C++] Goto line command help

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)


System: Uber-PC
CPU
Intel E8400 Core 2 Duo @ 3.00 GHz
Motherboard
ASUS P5Q
Memory
2GB Corsair Dominator
Graphics Card
ASUS 8800GT
Hard Drive
500GB
Sound Card
8.1 On-Board
Power Supply
Antec NEO 450w
Case
Antec 900 Gaming Case
CPU cooling
Stock
GPU cooling
Stock
OS
Windows XP Pro 32 bit
Monitor
Chimei 22" Widescreen
Snogus is offline I fold for Overclock.net Snogus's Gallery   Reply With Quote
Old 07-16-09   #2 (permalink)
:wheee:
 
mrtn400's Avatar
 
intel nvidia

Join Date: Aug 2007
Location: Carmichael, CA
Posts: 4,363
Blog Entries: 2

Rep: 279 mrtn400 is a proven membermrtn400 is a proven membermrtn400 is a proven member
Unique Rep: 237
Hardware Reviews: 1
Trader Rating: 1
Default

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.
__________________
System: Evolution (Alt Rig)
CPU
2x 3.06Ghz Xeon Prestonia (SL6VP) w/ HT off
Motherboard
MSI E7505 Master-LS2
Memory
4x 512MB Registered DDR-266
Graphics Card
BFG 7300GT 512MB @ 590Mhz Core/380Mhz Memory
Hard Drive
Hitachi 120GB
Sound Card
ASUS Xonar DX w/ shielding
Power Supply
450w
Case
Stock IBM
CPU cooling
Stock
GPU cooling
Stock
OS
Windows XP Professional SP3
Monitor
1x Acer 19" @ 1400x900, 1x Sceptre 19" @ 1280x1024
mrtn400 is offline Overclocked Account mrtn400's Gallery   Reply With Quote
Old 07-17-09   #3 (permalink)
nVidia Enthusiast
 
intel nvidia

Join Date: Feb 2007
Posts: 212

Rep: 1 xSevasTra Unknown
Unique Rep: 1
Trader Rating: 0
Default

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.
__________________


Because perfect hair is overrated....

System: My System
CPU
| e8400 | 4050mhz |
Motherboard
| eVGA 680i NF68-A1 | vMod |
Memory
| 4GB | OCZ BLADE | 1106 | 5-5-5-15 |
Graphics Card
| BFG GTX 275 |
Hard Drive
| 2 | 500GB | Western Digital | Caviar |
Power Supply
| Silverstone Zues | 850w |
Case
| Lian Li PC-61B |
CPU cooling
| Prolimatech | Megashadow | 2 150CFM Delta |
Monitor
| Samsung 2333SW | 23" |
xSevasTra is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools



All times are GMT -5. The time now is 11:39 PM.


Overclock.net is a Carbon Neutral Site Creative Commons License

Terms of Service / Forum Rules | Privacy Policy | DMCA Info | Advertising | Become an Official Vendor
Copyright © 2009 Shogun Interactive Development. Most rights reserved.
Page generated in 0.33303 seconds with 8 queries