Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C++/C Programming › GoTo function like CMD?

GoTo function like CMD?

Posts 1–5 of 5 · Page 1 of 1
That0n3Guy
That0n3Guy
GoTo function like CMD?
I tried using, "system(":test2");"
and then "system("goto :test2");"
but it didn't change the way the program ran at all.

Is there anything similar to the CMD goto command that would allow you to skip around in C++ code, or would it merely be easier with functions?

Also, before you say something along the lines of "Read the fucking manual", I've looked through 2 books today and search online for about an hour with no results.
#1 · 16y ago
why06
why06
Quote Originally Posted by That0n3Guy View Post
I tried using, "system(":test2");"
and then "system("goto :test2");"
but it didn't change the way the program ran at all.

Is there anything similar to the CMD goto command that would allow you to skip around in C++ code, or would it merely be easier with functions?

Also, before you say something along the lines of "Read the fucking manual", I've looked through 2 books today and search online for about an hour with no results.
If your trying to skip around in code like that... though I don't recommend it just create a jump point by saying something like [php] int i;
test: // will jump back to this point
doSomethin();
doSomethingElse();[/php]

[php]
int i = 3;
goto: test; // will jump back to the line test and execute from there
...
doSomething3();
[/php]

At least I'm pretty sure that is how it works. Tell me if I'm wrong.
#2 · 16y ago
LA
lalakijilp
avoid go to.
you almost never have to use it and it makes the code difficult to read

#3 · 16y ago
B1ackAnge1
B1ackAnge1
Quote Originally Posted by lalakijilp View Post
avoid go to.
you almost never have to use it and it makes the code difficult to read
Yeah That... I've never had to use a GOTO in C++..
if you REALLY wanted to though you still can:

Code:
///...some code..

goto myLabel;

//...some code...

myLabel:
     DoSomething();
#4 · 16y ago
ZE
zeco
I've never had to use goto either. But i've always wanted to.
#5 · 16y ago
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

  • all the words like wtf and there explanationBy Pepijntje in General
    24Last post 4y ago
  • lets see what everyone looks likeBy yocinfluence in General
    96Last post 20y ago
  • Private Servers You Like MPGH Will MakeBy Paolo1993 in General Gaming
    53Last post 20y ago
  • lets see what everyone looks likeBy yocinfluence in Spammers Corner
    10Last post 20y ago
  • What do ya like better?By i eat trees in Entertainment
    5Last post 20y ago

Tags for this Thread

#cmd#function#goto