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

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -