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 › C++ help?

C++ help?

Posts 1–15 of 37 · Page 1 of 3
poip0i
poip0i
C++ help?
So i just started C++ and i got a book called C++ A Begginers guide second edition and it said to type in

/*
This is a simple C++ program.

Call this file sample.cpp.
*/

#include <iostream>
using namespace std;

// A C++ program begins at main ()
int main ()
{
cout << "C++ is power programming.";

return 0;
}
In my compiler so i put it in microsoft visual c++ 2008 express but it never told me what kind of project it was supposed to be and just told me to copy it in. I made my project a win32 console application and typed it in exactly but it couldn't compile it. So i read ahead of the book and it said to first name it sample.cpp which i already did and it said to first type it in wordpad so i did that to. after i did that it showed me a lot of command lines.

Could you people help me? i just started so sorry for being such a nooby.

Oh and i have to go so sorry i can't stay on this page for to long right now so if i dont reply to your answers or suggestions on my mistakes please forgive me. thanks!
#1 · edited 16y ago · 16y ago
Void
Void
Mind posting the errors you were getting?
#2 · 16y ago
`Bobs Bees
`Bobs Bees
It should be a win32 app if your beginner (Thats what iam starting with)

I'll post pic

#3 · 16y ago
poip0i
poip0i
Quote Originally Posted by Void View Post
Mind posting the errors you were getting?
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add 'c "stdafx.h"' to your source?

The book didn't mention anything about the #include stdafx.h so i dont think im supposed to put that in

I read on to what to do if i needed help and it said to use the command line C:\...>cl -GX Sample.cpp

Any idea what that is?
#4 · edited 16y ago · 16y ago
Void
Void
Then what do you mean it's not compiling? If it didn't compile there must be some error...
#5 · 16y ago
poip0i
poip0i
Quote Originally Posted by Void View Post
Then what do you mean it's not compiling? If it didn't compile there must be some error...
It just said it failed and in the book it said to add C:\...>cl -GX but i dont know what that is
#6 · 16y ago
Void
Void
The book is telling you to compile from Visual Studio's command line. CL.exe is the compiler it uses. -GX is like a parameter for CL. I recommend using a simpler IDE, such as Dev-C++..
#7 · 16y ago
poip0i
poip0i
Quote Originally Posted by Void View Post
The book is telling you to compile from Visual Studio's command line. CL.exe is the compiler it uses. -GX is like a parameter for CL. I recommend using a simpler IDE, such as Dev-C++..
ok ill try that out right now
#8 · 16y ago
'Bruno
'Bruno
Create a empty project
Right-Click on Source Files
Add New Item
Name it Sample.cpp
Add code
Profit

i honestly don't see what could go wrong
#9 · 16y ago
Kallisti
Kallisti
New project > Empty Project > Right click on the Folder "source" and create New .cpp file.
#10 · 16y ago
Void
Void
Well I guess creating an empty project works too. =o=
#11 · 16y ago
Kallisti
Kallisti
well, thaats how i learned it, and because i dont like creating projects with main.cpp already created with some random code
#12 · 16y ago
poip0i
poip0i
Quote Originally Posted by TailsTehFox View Post
New project > Empty Project > Right click on the Folder "source" and create New .cpp file.
Where is the folder source?
#13 · 16y ago
Void
Void
I think you should just use Dev-C++ until you've gained some experience using a basic IDE. Or you can be a man and use the command line to compile.
#14 · 16y ago
Kallisti
Kallisti
Quote Originally Posted by poip0i View Post
Where is the folder source?


#15 · 16y ago
Posts 1–15 of 37 · Page 1 of 3

Post a Reply

Similar Threads

  • Help my!By Windowns7 in Combat Arms BR Coding Help
    2Last post 15y ago
  • Ajuda / HelpBy - Battery' in Combat Arms BR Coding Help
    3Last post 15y ago
  • Combat arms Vid helpBy djw111 in Combat Arms Help
    4Last post 14y ago
  • AFK Bot [help]By fet in Combat Arms Help
    7Last post 15y ago
  • Injector Admin helpBy asdfgas in Combat Arms Help
    4Last post 15y ago

Tags for this Thread

#c++ help