4 ms·
> trying to understand what the fuck cout<<x actually does You can always do fprintf instead of that; i almost never do C++ streams for io - there is always a
by MichaelMoser123 10y ago
> trying to understand what the fuck cout<<x actually does
You can always do fprintf instead of that; i almost never do C++ streams for io - there is always a way to avoid them.
- gravypod 10y agoI have also never seen a codebase that has used cout piping that was worth any salt. But then why is it the first thing we shove into peoples faces when teaching them the language?
- MichaelMoser123 10y agoi think they want to make an impression: C++ is supposed to be a new language, and not just C with a class system + templates bolted on top of it. i guess streams is supposed to be the new way of doing IO, never mind the circular inheritance mess and virtual function calls for getting new data.