|
|
|
|
|
by qsdf38100
1409 days ago
|
|
C++ is a language, while iostream is one of the many C++ tools available to write to the standard output. It’s available by default, it’s part of the standard library, but you don’t have to use it. printf is also available, and will be as fast as using it from C. Note that in most cases, the speed of writing to standard output is irrelevant unless you are implementing cat or some command line text processing tool. I find iostream very convenient and type safety is a big plus compared to printf. It’s also very easy to implement your own handlers for your own types. |
|