0phidian wrote:What Ninjex said. It is best practice to go ahead and include string though. It will not work for all compilers just because it's included elsewhere.
Yeah I've been bitten a few times by it.
- Code: Select all
g++ will give me shit and i'm looking at my 6 whole lines of code for like 5 minutes, thinking 'WHAT DO YOU WANT FROM ME!!
-Ninjex- wrote:For example, if you want to print something to the console twice, it's not worth including the entire file (such as iostream or stdio), which will also bring in at least 30 other functions too. It would be best just to look in the global namespace using the scope-resolution operator :: like so: std::cout
Fun fact: a hello world program i made in ASM was 61 bytes as an executable and the equivelant in C is 976 bytes. That's what 1 library being linked?
Goatboy wrote:Oh, that's simple. All you need to do is dedicate many years of your life to studying security.
IF you feel like exchanging ASCII arrays, let me know ;)
pretentious wrote:Welcome to bat country