Home > Software engineering >  There are several small white problem, passing by the great god, please help!
There are several small white problem, passing by the great god, please help!

Time:09-17

1. In an MFC program, if contains a lot of writing your own header files (header file number more and very long each header file), the application of various aspects have effect? In what respect?
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
  • Related