Re:Why is reading lines from stdin much slower in C++ than P...
by rwos on Sunday March 11, 2012 @07:50AM
(#3690202)
Using gets() also makes writing exploits much quicker - win-win! ;-)
Sorry, I couldn't resist - you are of course right with the general stdio over std::iostream thing, though. I've also found that memory usage and executable size explode when using streams - though that's not C++'s fault per se, more a stdlib/compiler problem.
Sorry, I couldn't resist - you are of course right with the general stdio over std::iostream thing, though. I've also found that memory usage and executable size explode when using streams - though that's not C++'s fault per se, more a stdlib/compiler problem.