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 › Programming Tutorials › [C++]Hello World; Your first C++ Program

[C++]Hello World; Your first C++ Program

Posts 1–4 of 4 · Page 1 of 1
MR
Mr. Bond
[C++]Hello World; Your first C++ Program
Hello guys, thought I'd start off with a nice simple tutorial on making your first C++ Program. I'm only 14 so your probably better off to go Google a more detailed tutorial .

I'm assuming you have a compiler at this time, if you don't then go and torrent Microsoft Visual Studio. Personally i use 2003 .Net because it best fits my needs, but any is good really.

After you have a compiler open up a new Win32 Console Application and name it whatever you want.
If you're using MSVS, when you start a new project in the settings select 'Empty Project' to stop any precompiled headers.

Please Read: DON'T Just copy and paste! You WONT learn anything unless you retype it out later, type it out yourself. You will learn a hell of a lot more then just copy and pasting.

Code:
#include <iostream>

using namespace std;
Don't worry about this too much for now, but iostream and std contains some basic functions that we're going to be using.

Next Add~
Code:
int main()
{
}
int main() is the what our program will execute(use) when you run it.
int stands for integer which means that we're going to have to return a value in main() else we will get compile errors!
"{" and "}" are the opening and closing brackets for "main()", { is where main() starts and } is where main() ends.
These aren't just for main() though! You can use these for any of your own voids/integers/methods that you create, for instance
"void myVoid() { }"
Here the brackets do exactly the same thing, anyway, moving on~

Add the rest of the code into your main() integer.
{ Remember to add the code in between the brackets }
Code:
cout << "Hello World!" << endl;
cin.get();
return 0;
cout stands for "console output" and is used to output data onto a console (The black box looking thing).
Anything after the operator "cout <<" is outputted onto the console, because we're outputting a string we will use speech marks.
The full code "cout << "Hello World!" << endl;"
outputs 'Hello World!' and endl means end line so it goes to the next line.

cin.get() basically 'pauses' the programming until you press a key, stopping our program from just flashing open and close;

"return 0;" Remember what i said earlier about main() being an integer and needs to return a value, well this just returns the value 0.

Now the code should look like this:
Code:
#include <iostream>

using namespace std;
int main()
{
  cout << "Hello World!" << endl;
  cin.get();
  return 0;
}
Notes
We use ";" to declare the end of a line, you can also however use it to seperate different things and put your code on one line like this:
Code:
cin << "Hello World!" << endl; cin.get(); return 0;
I don't want to go into too much detail about cin, it stands for "console input", try googling it .

Ending Program
Now we are finished, this is what our program should do on a console screen:
Code:
Hello World!
~Mr. Bond

P.S. If there are any errors in this tutorial please contact me immediately
#1 · edited 18y ago · 18y ago
KA
kaneo93
sheeewwwwweeeeeeettttt
#2 · 17y ago
NatureSkillz
NatureSkillz
Thanx mate, i need downloadl ink, plz get it for me. of u can, thanx!!!
#3 · 17y ago
cyberghost
cyberghost
Hey thanks for the tut it worked for me> i am using relo2 to compile , build and run with a borland c++ add-on compiler. really appreciate ur good tut and look foward to seeing more. Thanks!!!!!!!!!!
#4 · 17y ago
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

  • [Tutorial] Your first programBy akimoko in C++/C Programming
    10Last post 19y ago
  • Deebow's C++ TuT for begginers! How to make your first program!By Drew in C++/C Programming
    13Last post 16y ago
  • [Tutorial]Make your first hack in Visual Basic 6 (and a begin in CE) (for noobs)By diamondo25 in Programming Tutorials
    28Last post 17y ago
  • *DLL* [Tutorial] Make Your first DLL Interacted to a Form Project...By Silk[H4x] in Visual Basic Programming
    14Last post 17y ago
  • Your first HackBy merkado in Visual Basic Programming
    6Last post 18y ago

Tags for this Thread

#program#world