Is it bad practice to use C features in C++?

前端 未结 10 1943
悲哀的现实
悲哀的现实 2021-02-19 00:16

For example printf instead of cout, scanf instead of cin, using #define macros, etc?

10条回答
  •  日久生厌
    2021-02-19 00:57

    For allocations, I would avoid using malloc/free altogether and just stick to new/delete.

提交回复
热议问题