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

后端 未结 4 713
离开以前
离开以前 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:30

    unistd.h is not part of standard C. Standard C++ lib doesn't include it with the other c headers.

提交回复
热议问题