Header per source file

后端 未结 7 1679
醉梦人生
醉梦人生 2020-11-29 05:53

I\'m trying to understand the purpose behind one header per each source file method. As I see it, headers are meant for sharing function declarations, typedef\'

7条回答
  •  無奈伤痛
    2020-11-29 06:09

    You don't need one header per source file. One header per module, containing the public interface, and maybe an additional header containing private declarations etc shared between files in that module.

提交回复
热议问题