C File Convention

C File Convention

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2019 Nov 20 13:7
Editor
Edited
Edited
2023 Apr 25 18:30
Refs
Refs

namespace and header

 
 

cpp


  • self header file
  • use header file
    • namespace for convention
  • functions
 
 
 

.h


  • define
  • include header file
    • do not use namespace
  • function prototype
 
 
 
 
 
 

Reference


  • why we distribute h and cpp
  • do not use using namespace in header file
  • we do not have to include c++ and prototype and define should be in header
  • using without include is illegal because
 
 
 

 

Recommendations