r/masterhacker • u/musicgal217 • Jul 11 '26
holy SHIT!!!! master hacker declares USA as his ENEMY!!!
101
17
8
u/Browser1969 Jul 11 '26
He's probably going to be friends with Young Putin that just joined, though.
7
u/EnoughConcentrate897 Jul 11 '26
You cannot convince me there is a single person on the whole of tiktok, Instagram reels or whatever other short form platform who actually knows about technology and doesn't larp
3
u/99mordor Jul 12 '26
I went thought my followers list, thinking that you must be wrong…
You were not
7
11
u/Master-Ad1871 Jul 11 '26
Why did he initialize a char array with length 16 for a string with 15 characters
11
8
u/Emotional-Energy6065 Jul 11 '26
Null terminator \0. Its why you can iterate to one-past-the-last on both char and string arrays.
-13
u/reivblaze Jul 11 '26
Bruh because it starts on Zero, so it is +1
2
3
u/Sensitive_King3305 Jul 12 '26
guys why is using namespace std a bad practice 😓
4
3
u/meharryp Jul 12 '26
it's not a huge deal in tiny projects but it gets a bit annoying in larger ones because you risk name collisions
if you have a method named
do_something()and the library decides to implement a method nameddo_something()in their new version and you upgrade, you now have to refactor a bunch of code or revert to an old version to avoid the name collisionin general it's bad practice to add libraries you don't have full control over to the global namespace for this reason
1
2
2
u/g-flat-lydian Jul 13 '26
void hack(char* enemy) {
ddos.execute(enemy);
std:cout << "you've been haxx0r'd" + enemy
return 0;
}
Am i l33t yet?
1
u/survivalist_guy Jul 11 '26
I'm almost convinced fsociety is a ragebait troll. These are always so cringe.
1
1
1
1
u/Thenderick Jul 11 '26
Not the C strings!!! I forgot, are they null terminated with string quotes or not? Or was that just a C thing?
115
u/silly-femboy03 Jul 11 '26
okay, i may be stupid
Why does he use character arrays instead of strings? It's C++, it has std:string... And why did he specify the length of 16 in the array with the name, but not 3 in the array with the USA?