c++ - should i put .hpp and .cpp in the same fold or in ./src and ./hdr respectively? -


It seems that separate them into src and HDR is a popular solution. However, it is not in Netbeans: By default, NetBean will maintain both HPP and CPP files in the same directory.

Question:

  1. Do I separate or not? Why?

  2. If there is 1 yes, then is there a way to set it automatically in Netbeans?

If you distribute a library as binaries and headers If you are planning, then starting the headers in a different directory can be easy.


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -