C++ header files with no extension

前端 未结 3 1788
广开言路
广开言路 2021-02-11 09:23

I am using an open source project (Open Scene Graph). I found that all the header file names are in File format, which I found to be File With No Extension

3条回答
  •  眼角桃花
    2021-02-11 10:16

    What I know is that most names were already taken by the C standard library. Since C++ has to co-exist with it, the C++ standard library may have evolved to not have an extension for its headers.

    Note that these some of these headers may have the same name, but may or may not be similar in the functionality they offer.

    #include //this includes the header C library
    #include //this includes the header from the C++ standard library
    

提交回复
热议问题