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 › Whats wrong with my code? =(

Whats wrong with my code? =(

Posts 1–14 of 14 · Page 1 of 1
SadisticGrin
SadisticGrin
Whats wrong with my code? =(
Code:
1: #include <iostream.h>
2:
3:
4: int main();
5: {
6: cout <<"Hello World!\n";
7:     return 0;
8: }
#1 · 20y ago
Bull3t
Bull3t
It should look like this:

Code:
#include <iostream.h>

int main()
{
    cout << "Hello World!\n";
    return 0;
}
First error is "int main();" I think it should be just "int main()" and second is you haven't put a space between "<<" and the text in parenthesis.
#2 · edited 20y ago · 20y ago
arunforce
[MPGH]arunforce
You have to put this right after I/Ostream:

using namespace std;

Topic Moved.
#3 · 20y ago
SadisticGrin
SadisticGrin
Dude. Der thanks arun. :P
#4 · 20y ago
Bull3t
Bull3t
Oh yeah, forgot that too! Haha.
#5 · 20y ago
SadisticGrin
SadisticGrin
And thanks Bull3t. =)
#6 · 20y ago
~Viper~
~Viper~
and thanks to gkanth too
#7 · 20y ago
Calard
Calard
Quote Originally Posted by Gkanth
and thanks to gkanth too
u were thinking of a solution, just forgot to post it right? Cmon, thank her 4 trying in her own special way!
#8 · 20y ago
SadisticGrin
SadisticGrin
Dude wtf someone tell me why this doesn't work still. >.>



And calard.....her who? :P
#9 · edited 20y ago · 20y ago
JE
jeremy6996
you should put

#include <iostream>
int main()
{
cout<<"whut ever text you want";
cin.get(); //it means you press enter to close the window
}



dont worry im new too c++ too
#10 · 20y ago
tednugent
tednugent
Or you could just make a random variable and call cin...it's kinda useless, but...it works


Code:
#include <iostream.h>
using namespace std;

int main()
{

    int random;

    cout << "TEXT!!!\n";
    cin >> random; 

    return 0;

}
#11 · 19y ago
iverson954360
[MPGH]iverson954360
if you keep bumping old threads imma have to have the bant stick be shoved up your ass
#12 · 19y ago
tednugent
tednugent
I haven't bumped that many old threads.
#13 · 19y ago
RE
Reynolds88
Hey i got some problem too :
Code:
//Main.cpp
#include <iostream.h>
#include <fstream.h>
#include "test.h"



int main()
{
    write();
    return 0;
}
Code:
//test.h
#include <fstream.h>
#include <iostream.h>


fstream file;


int write()
{
    int x=0;

    file.open("G:\temp\test.txt", ios::out);
    file << "testing" << endl;
    file >> x;
    cout << x;
    file.close;
    
    return 0;
}
When i compile this i got :
Code:
3 G:\Dev-Cpp\InOut.cpp In file included from G:\Dev-Cpp\InOut.cpp 
 G:\Dev-Cpp\test.h In function `int write()': 
16 G:\Dev-Cpp\test.h statement cannot resolve address of overloaded function
How to fix it?

Ty
#14 · edited 19y ago · 19y ago
Posts 1–14 of 14 · Page 1 of 1

Post a Reply

Similar Threads

  • Whats wrong with this code ?By bohnenbong in WarRock - International Hacks
    7Last post 18y ago
  • [Help]whats wrong with my code?By kibbles18 in C++/C Programming
    8Last post 15y ago
  • whats wrong with my code.By GS-HITMAN in CrossFire Hack Coding / Programming / Source Code
    10Last post 15y ago
  • What Wrong with this code?By DaRk in CrossFire Hack Coding / Programming / Source Code
    15Last post 15y ago
  • What is wrong with this code?By t7ancients in C++/C Programming
    10Last post 16y ago

Tags for this Thread

None