C++ - include unistd.h: why not cunistd?

后端 未结 4 776
离开以前
离开以前 2021-02-02 05:00

It\'s said that when including C header files in C++, the \".h\" suffix should be removed and then add \"c\" at the beginning. For example, #include

4条回答
  •  误落风尘
    2021-02-02 05:47

    Because unistd.h never was part of the C language. It is part of the Operating System.

提交回复
热议问题