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 › [Help] Hello World! Questions

[Help] Hello World! Questions

Posts 1–7 of 7 · Page 1 of 1
Unicow
Unicow
[Help] Hello World! Questions
So... I'm using learncpp.com and I'm on the "Hello World!" thing which everyone apparently hates.
Code:
// HelloWorld!.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>

int main()
{
	std::cout << "Hello World!" << std::endl;
	return 0;
}
Can someone tell me the function of each and all of these codes? And can you dumb it down? because I don't know like... Uber C++ terms... Lol and if you use any C++ terms can you define them if you think I won't know them? Thank you ^^
#1 · 15y ago
'Bruno
'Bruno
C++ Language Tutorial

some documentation will be better than someone actually explaining in my opinion.
#2 · 15y ago
why06
why06
No one hates "Hello World". In fact everyone is good friends with her.
#3 · 15y ago
aanthonyz
aanthonyz
Quote Originally Posted by why06 View Post
No one hates "Hello World". In fact everyone is good friends with her.
Why do you assume its a girl?

Sir, are wrong!

Its a S.H.I.T.

She.He.It.Thing.


#4 · 15y ago
CrypTology-
CrypTology-
im a beginner my self
and i just finished learning hello world last night
ill try and explain to the best of my abilities but like i said im a beginner

1. #include <iostream> this includes the iostream file which is the standard input output functions of the program

2. int main ()
this is where the program begins functioning
where it starts its execution

3. std::cout << "Hello World!" << std::endl;
you wouldnt have to put std infront of everything if you had just used
"using namespace std; in the beginning
cout <<hello world>> tells the program to print out hello world

4.return 0;
tells the program that its main function is finished and it is finished


edit: thank me if i helped : )
#5 · 15y ago
Unicow
Unicow
Quote Originally Posted by aanthonyz View Post
Why do you assume its a girl?

Sir, are wrong!

Its a S.H.I.T.

She.He.It.Thing.


Sir, made me lmao xD
#6 · 15y ago
MO
Mookamoka
Here i'll just comment ur code for you :3

I might add some things too... dont read it if you think its too much to take in. I'll dumb it down as much as i can for ya :B

Code:
// HelloWorld!.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>         // this is what allows you to use cout, cin, and many other things. It's pretty much essential in most programs.

using namespace std;      // This Makes it so you no longer need to include any std:: crap in your code :D (i'll edit the code below so that the std is gone to show you what it looks like)

int main()      // This is the main function. This is where the program begins and ends execution basically. If you ever write any other functions, you use the main function to call them or they wont do anything. This is the central point of the program basically. But you'll worry about other functions and calling and crap later.
{
	cout << "Hello World!" << endl;      //cout is the keyword c++ uses to "print" something to the screen. Because most c++ programs are run in the command prompt (for now), Hello World! is going to be the first and only thing u see on that sketchy lookin dark screen when you compile. endl basically just means that you made a new line. it's like pressing enter.
	return 0;   // this returns a value of 0 back to the operating system. Dont worry about this right now you'll learn about it soon...
}
extra: Incase you don't have any programming experience or just don't know, { is used to show that the main function started, and } is used to show that it ended. If you were to make any other functions in the future they would be made outside of the { and } of main. It's also important to know that the compiler automatically knows that main is the main function... So it ALWAYS has to be called main. You could technically change the datatype (int) to something else, but don't worry about that yet.

the semi-colons are put at the end of every line. (until you come to one line if statements but dont worry about that yet either). It's just basic c++ syntax.

EDIT: I love helping people :x makes me feel pro at this stuff.

Also forgot to add that you should listen to absolutely everything that why says. He sum kynda geniuz.
#7 · edited 15y ago · 15y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Tags for this Thread

None