July 10th, 2013, 12:40 PM
[RESOLVED] About Including header files to source file or Header file
For example, I have the below files in a project called Calculate :
Source files : Calculate.cpp , Average.cpp (with out main)
Header files : Calculate.h , Average.h
I knew in general, we have to include Average.h to project header file Calculate.h to make it as part of project.
Can anyone please explain me the technical difference between adding header file (Average.h) to either project header file (Calculate.h) or project source file (Calculate.cpp) ?
I found no difference in an output. But, there must be technical difference. Looking forward to hear from you.
Thanks in advance,
Last edited by srvolatile; July 10th, 2013 at 12:43 PM.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!