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 › [Tutorial] Your first program

[Tutorial] Your first program

Posts 1–11 of 11 · Page 1 of 1
AK
akimoko
[Tutorial] Your first program
Btw sorry if this tutorial is hard to understand its my first
Create a new console Application (win32 is the same as a console application)

If the following Code is not in your Starting code already then put it in

#include <stdlib.h>
#include <iostream.h>
#include <string>
using namespace std;

int main(int main(int argc, char *argv[]))

{
system("PAUSE");
return 0;
}


Ok now go to the first Bracket and hit enter twice to start a line under the bracket.

then Type the following

cout << "hello i am your computer talking" << endl;

Now your code should look like this

#include <stdlib.h>
#include <iostream.h>
#include <string>
using namespace std;

int main(int main(int argc, char *argv[]))

{

cout << "hello i am your computer talking" << endl;

system("PAUSE");
return 0;

}


Now all you have to do is Build and compile then run it and a dos window should appear saying

"Hello , I am your computer talking"



Summary :

the command 'cout' tells the computer that you want to output some data through the console.

The 2 less than sign following the cout tell the computer that the thing that follows will be shown on the console.

The double quotes are to tell the computer where the string will start and end.

And Endl; means that you want to start a new line.



Hope this helped Some of you soon-to-be programmers on your way of learning, I will Be making a tutorial soon on how to make the console add,substract,multiply or divide numbers.

-Dan
#1 · 20y ago
Skurdz
Skurdz
where can i get a free c/c++ compiler that isnt dev-c++? it doesnt work for me...
#2 · 20y ago
gunot
gunot
hamm ... dont really get what this dose.. i only se a cout and it says im your cumputer talking nothing more really :S
#3 · 20y ago
SpiderByte
SpiderByte
All this for a simple "Hello Worl!" I don't think so...
#4 · 20y ago
JO
Joanne
You don't need all of that in there honestly, all you really need is a simple cout output message and then you can get it to say something. And you don't have to include those libraries just include the iostream.

Something easy like

Code:
#include <iostream>
using namespace std;

int main() {
    cout << "Hello World";
    return 0;
}
That's as easy as it gets.. but I don't know why you did all of that extra stuff just to make it say something you don't really need to put all of that, lol.

And that's using C++.. :/

Course if you want to start in C you can, but I think C++ is somewhat easier, don't ask me why I thikn this but seriously, not everyone is right about starting with C.
#5 · edited 20y ago · 20y ago
kvmn8
kvmn8
Quote Originally Posted by SpiderByte
All this for a simple "Hello Worl!" I don't think so...
lolz good stuff
#6 · 20y ago
EK
EkstatikX
I replaced "hi, I'm your computer talking." with "hi, I am your ass-slave"
#7 · 20y ago
Calard
Calard
Quote Originally Posted by EkstatikX
I replaced "hi, I'm your computer talking." with "hi, I am your ass-slave"
Fun is what programming is all about right?
#8 · 20y ago
SadisticGrin
SadisticGrin
Ok.....so I can use c++ to map out a prog like the Headshot single kill for warrock?
#9 · 20y ago
JE
jeremy6996
#include <stdlib.h>
#include <iostream.h>
#include <string>
using namespace std;

int main(int main(int argc, char *argv[]))

{

cout << "hello i am your computer talking" << endl;

system("PAUSE");
return 0;

}

thats C/not C++ (this is C++ Section)

C#/C++ would be more like

#include <iostream>
using namespace std;
int main()
{
cout<<"Eny text";
cin.get(); //if you want
#10 · 20y ago
NA
Naeron
Quote Originally Posted by Skurdz View Post
where can i get a free c/c++ compiler that isnt dev-c++? it doesnt work for me...
Why isnt dev-c++ working for you? I think its a great ide. I use it as well. But you can try cygwin. Its also free.
#11 · 19y ago
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

  • 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
  • [RELEASE/INFO] CN Tutorial - Making your first CA Hack!By CoderNever in Combat Arms Hack Coding / Programming / Source Code
    170Last post 16y ago
  • [C++]Hello World; Your first C++ ProgramBy Mr. Bond in Programming Tutorials
    3Last 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

Tags for this Thread

None