New Posts  All Forums:Forum Nav:

In C++...

post #1 of 8
Thread Starter 
Is there a command to skip to a certain line of code? If so what is it and what header is required?
6625WD
(13 items)
 
  
CPUMotherboardGraphicsRAM
T7500 2.2GHz Core 2 Duo Intel 965 (Santa Rosa) 8600M GT 512MB GDDR3 2GB DDR2 800MHz Kingston 
Hard Drive
120GB SATA Hitachi 
  hide details  
Reply
6625WD
(13 items)
 
  
CPUMotherboardGraphicsRAM
T7500 2.2GHz Core 2 Duo Intel 965 (Santa Rosa) 8600M GT 512MB GDDR3 2GB DDR2 800MHz Kingston 
Hard Drive
120GB SATA Hitachi 
  hide details  
Reply
post #2 of 8
Isn't it just making 2 slashes or a slash and a star?
Like this:

For the current line only:
Code:
//
Skips anything inbetween:
Code:
Start it with /*
End it with */
#well
(18 items)
 
Lenovo L530
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 4770k Gigabyte Z87X-UD4H Sapphire RX 580 Corsair CMX8GX3M2A2000C9 
Hard DriveOptical DriveCoolingOS
Samsung 840 EVO Generic DVD±RW Burner Noctua NH-D14 Windows 10 
MonitorMonitorKeyboardPower
Dell U2711 Samsung SyncMaster 2233 Ducky DK9008 Overclock.net Edition, Cherry MX B... Corsair TX850 
CaseMouseMouse PadAudio
Fractal Design Core 2500 Logitech G303 QPAD HeatoN L M-Audio Fast Track USB 
AudioAudio
Beyerdynamic DT-770 80 Ohm AntLion ModMic v3 
CPUGraphicsRAMRAM
Intel Ivy Bridge 3210M Intel HD 4000 Graphics Soldered Corsair Vengeance  
Hard DriveOptical DriveOSMonitor
500GB DVD-+RW Windows 7 Professional 1600x900 
  hide details  
Reply
#well
(18 items)
 
Lenovo L530
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 4770k Gigabyte Z87X-UD4H Sapphire RX 580 Corsair CMX8GX3M2A2000C9 
Hard DriveOptical DriveCoolingOS
Samsung 840 EVO Generic DVD±RW Burner Noctua NH-D14 Windows 10 
MonitorMonitorKeyboardPower
Dell U2711 Samsung SyncMaster 2233 Ducky DK9008 Overclock.net Edition, Cherry MX B... Corsair TX850 
CaseMouseMouse PadAudio
Fractal Design Core 2500 Logitech G303 QPAD HeatoN L M-Audio Fast Track USB 
AudioAudio
Beyerdynamic DT-770 80 Ohm AntLion ModMic v3 
CPUGraphicsRAMRAM
Intel Ivy Bridge 3210M Intel HD 4000 Graphics Soldered Corsair Vengeance  
Hard DriveOptical DriveOSMonitor
500GB DVD-+RW Windows 7 Professional 1600x900 
  hide details  
Reply
post #3 of 8
Yeah, I think // is just to cancel that line for you to type a comment
x
(12 items)
 
  
CPUMotherboardRAMHard Drive
AMD FX-8350 Black Edition ASUS SABERTOOTH 990FX  Crucial Ballistix Elite Western Digital 
Optical DriveCoolingOSKeyboard
Asus CORSAIR Hydro Series H55 Quiet Edition Windows 8 Logitec  
MouseMouse PadAudioAudio
Microcenter Microcenter Senheisser HD25II AIAIAI TMA-1 
  hide details  
Reply
x
(12 items)
 
  
CPUMotherboardRAMHard Drive
AMD FX-8350 Black Edition ASUS SABERTOOTH 990FX  Crucial Ballistix Elite Western Digital 
Optical DriveCoolingOSKeyboard
Asus CORSAIR Hydro Series H55 Quiet Edition Windows 8 Logitec  
MouseMouse PadAudioAudio
Microcenter Microcenter Senheisser HD25II AIAIAI TMA-1 
  hide details  
Reply
post #4 of 8
Thread Starter 
nono I mean say I was at line 30 and I wanted to run line 50 or 20 right that second then let it continue on down from 50 or 20 as normal
6625WD
(13 items)
 
  
CPUMotherboardGraphicsRAM
T7500 2.2GHz Core 2 Duo Intel 965 (Santa Rosa) 8600M GT 512MB GDDR3 2GB DDR2 800MHz Kingston 
Hard Drive
120GB SATA Hitachi 
  hide details  
Reply
6625WD
(13 items)
 
  
CPUMotherboardGraphicsRAM
T7500 2.2GHz Core 2 Duo Intel 965 (Santa Rosa) 8600M GT 512MB GDDR3 2GB DDR2 800MHz Kingston 
Hard Drive
120GB SATA Hitachi 
  hide details  
Reply
post #5 of 8
Gah, I'm not sure, but I think you can use GOTO and definitions AFAIK.
#well
(18 items)
 
Lenovo L530
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 4770k Gigabyte Z87X-UD4H Sapphire RX 580 Corsair CMX8GX3M2A2000C9 
Hard DriveOptical DriveCoolingOS
Samsung 840 EVO Generic DVD±RW Burner Noctua NH-D14 Windows 10 
MonitorMonitorKeyboardPower
Dell U2711 Samsung SyncMaster 2233 Ducky DK9008 Overclock.net Edition, Cherry MX B... Corsair TX850 
CaseMouseMouse PadAudio
Fractal Design Core 2500 Logitech G303 QPAD HeatoN L M-Audio Fast Track USB 
AudioAudio
Beyerdynamic DT-770 80 Ohm AntLion ModMic v3 
CPUGraphicsRAMRAM
Intel Ivy Bridge 3210M Intel HD 4000 Graphics Soldered Corsair Vengeance  
Hard DriveOptical DriveOSMonitor
500GB DVD-+RW Windows 7 Professional 1600x900 
  hide details  
Reply
#well
(18 items)
 
Lenovo L530
(8 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 4770k Gigabyte Z87X-UD4H Sapphire RX 580 Corsair CMX8GX3M2A2000C9 
Hard DriveOptical DriveCoolingOS
Samsung 840 EVO Generic DVD±RW Burner Noctua NH-D14 Windows 10 
MonitorMonitorKeyboardPower
Dell U2711 Samsung SyncMaster 2233 Ducky DK9008 Overclock.net Edition, Cherry MX B... Corsair TX850 
CaseMouseMouse PadAudio
Fractal Design Core 2500 Logitech G303 QPAD HeatoN L M-Audio Fast Track USB 
AudioAudio
Beyerdynamic DT-770 80 Ohm AntLion ModMic v3 
CPUGraphicsRAMRAM
Intel Ivy Bridge 3210M Intel HD 4000 Graphics Soldered Corsair Vengeance  
Hard DriveOptical DriveOSMonitor
500GB DVD-+RW Windows 7 Professional 1600x900 
  hide details  
Reply
post #6 of 8
You could use an if-then statement to skip the code.
post #7 of 8
Thread Starter 
Could you guys show me an expample of a then and a GOTO ? o_o
6625WD
(13 items)
 
  
CPUMotherboardGraphicsRAM
T7500 2.2GHz Core 2 Duo Intel 965 (Santa Rosa) 8600M GT 512MB GDDR3 2GB DDR2 800MHz Kingston 
Hard Drive
120GB SATA Hitachi 
  hide details  
Reply
6625WD
(13 items)
 
  
CPUMotherboardGraphicsRAM
T7500 2.2GHz Core 2 Duo Intel 965 (Santa Rosa) 8600M GT 512MB GDDR3 2GB DDR2 800MHz Kingston 
Hard Drive
120GB SATA Hitachi 
  hide details  
Reply
post #8 of 8
Thread Starter 
Nevermind guys I figured it out xD
6625WD
(13 items)
 
  
CPUMotherboardGraphicsRAM
T7500 2.2GHz Core 2 Duo Intel 965 (Santa Rosa) 8600M GT 512MB GDDR3 2GB DDR2 800MHz Kingston 
Hard Drive
120GB SATA Hitachi 
  hide details  
Reply
6625WD
(13 items)
 
  
CPUMotherboardGraphicsRAM
T7500 2.2GHz Core 2 Duo Intel 965 (Santa Rosa) 8600M GT 512MB GDDR3 2GB DDR2 800MHz Kingston 
Hard Drive
120GB SATA Hitachi 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming