cin and printf together?

Правка en1, от N8LnR2Nqf8Q4FN, 2021-01-18 15:07:37

There have been countless blogs about whether one should choose scanf/printf, or cin/cout as the main methods for getting inputs/outputs for C++. There are advantages and disadvantages of each kind, like the ability to easily format outputs, stream operator overloading, or not having to care about the decltype, etc.

But, from what I have seen, there are rarely any blogs that I can find myself, that mention the combination of cin/printf. This seems like a pretty good combination, and I have seen one or two people using it. One can get inputs without having to painfully type & every time, and nicely formatted outputs without a bunch of << operators.

Is there any disadvantage of this combination? Why do we hardly see anyone using those together?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский N8LnR2Nqf8Q4FN 2021-01-18 15:07:37 786 Initial revision (published)