C++ header file -


possible duplicate:
in c++ why have header files , cpp files?

why in c++ there .h , .cpp , not 1 file c# , java ?

for historical reasons. specifically, compatibility c. language designed run on (for 70s standards) low-end machines; header files (and still are) substituted inline separate program, keep memory use of compiler down. still helps keep libraries small.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -