cout or printf which of the two has a faster execution speed C++?

后端 未结 15 2861
旧时难觅i
旧时难觅i 2020-11-27 07:04

I have been coding in C++ for a long time. I always wondered which has a faster execution speed printf or cout?

Situation: I am designing a

15条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 07:35

    If you ever need to find out for performance reasons, something else is fundamentally wrong with your application - consider using some other logging facility or UI ;)

提交回复
热议问题