think is faster, std::cout or printf (the one provided by the C library)?
Is security required or can it just be ignored?
in this case for example you have a char buffer. why the hell you need all those extra stuffs in cout? just use write syscall or if you are crazy just puts it. if you say the case is complex ok just use malloc and snprintf it will be safe enough
Обсуждают сегодня