2. What you write common function should be put in a header file, and then do project contains the header files? Or made into library? What are the advantages and disadvantages?
Thank god!
CodePudding user response:
First of all, I think, if the header file is needed, that also should contain more,Secondly, as to make library or header file depends on what you want to don't want others to see the source code?
CodePudding user response:
The first question, has no effect on the program, the compiler might slow down a little, no relationship,Second question, on first. H, accumulate more classification to make library,
CodePudding user response:
Reference the STL