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 › learning about strings

learning about strings

Posts 1–7 of 7 · Page 1 of 1
CrypTology-
CrypTology-
learning about strings
//My first time using strings

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

int main ()
{
string mystring = "this is a string";
cout << mystring;
return 0;

}

so im learning about strings and i want to know if it matters which order i put my file types (iostream stdfax string)
is there a specific order? or can i just put it in random

and also mystring = "This is a different string content";
cout << mystring << endl;
what does endl; mean?
what does it do
#1 · 15y ago
'Bruno
'Bruno
There is not really an order needed for a library unless one library needs content from the other one. (Includes)

Endl;means to give a new line.

cout << "test";
cout << "test";
would print:
testtest

cout << "test" << endl;
cout << "test":
would print:
test
test
#2 · 15y ago
MO
mookamoka3
Quote Originally Posted by CrypTology- View Post
//My first time using strings

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

int main ()
{
string mystring = "this is a string";
cout << mystring;
return 0;

}

so im learning about strings and i want to know if it matters which order i put my file types (iostream stdfax string)
is there a specific order? or can i just put it in random

and also mystring = "This is a different string content";
cout << mystring << endl;
what does endl; mean?
what does it do
It doesn't matter what order you put your include prepocessors in. They're programs from other locations on ur operating system that are run before the application is executed basically. Unlike functions the order they're run in won't affect the way the program runs.

endl; is pretty simple. Just makes a new line.


edit: i lose.
#3 · 15y ago
CrypTology-
CrypTology-
ohhh thank you
#4 · 15y ago
KA
kamilos93
Quote Originally Posted by CrypTology- View Post
//My first time using strings

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

int main ()
{
string mystring = "this is a string";
cout << mystring;
return 0;

}

so im learning about strings and i want to know if it matters which order i put my file types (iostream stdfax string)
is there a specific order? or can i just put it in random

and also mystring = "This is a different string content";
cout << mystring << endl;
what does endl; mean?
what does it do
One more thing from me. There's one rule for header files. Put your own headers in quotation marks and put it at the end e.g.:
Code:
#include<iostream>
#include<conio.h>
#include"game.h"
#5 · 15y ago
why06
why06
Quote Originally Posted by mookamoka3 View Post
They're programs from other locations on ur operating system that are run before the application is executed basically. Unlike functions the order they're run in won't affect the way the program runs.
This isn't true. Those libraries are part of your program. They will be linked to the compiled executable statically (at compile time) or dynamically (at run time). However each library has it's own set of dependencies. If it is using a library that has not been loaded yet it will load it itself either statically or dynamically as well. Your right in the fact that the order for the most part doesn't matter though, but they are not separate programs.
#6 · 15y ago
MO
mookamoka3
Quote Originally Posted by why06 View Post


This isn't true. Those libraries are part of your program. They will be linked to the compiled executable statically (at compile time) or dynamically (at run time). However each library has it's own set of dependencies. If it is using a library that has not been loaded yet it will load it itself either statically or dynamically as well. Your right in the fact that the order for the most part doesn't matter though, but they are not separate programs.
Hurray for accidental learning experiences.
#7 · 15y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Tags for this Thread

None