C++ Tutorial: Part03: Making header files
Alan Saberi
In this video, you will learn about making a HEADER file and using it in yur program Here are a few best practices for creating your own header files.
Always include header guards. Do not declare variables in header files unless they are constants. Header files should generally only be used for declarations. Do not define functions in header files unless they are trivial. Doing so makes your header files harder for humans to read. Each header file should have a specific job, and be as independent as possible. For example, you might put all your declarations related to functionality A in A.h and all your declarations related to functionality B in B.h. That way if you only care about A later, you can just include A.h and not get any of the stuff related to B. Try to include as few other header files as possible in your header files.
For more information please Visit: http://alirsaberi.wordpress.com/ or: http://www.blogigo.com/AliRsaberi ... https://www.youtube.com/watch?v=uLUKqZkPK_A
18641438 Bytes