Hey, I'm just starting to learn C++ and I need some help with a header file. I'm using a Dummies Guide book and it says that I need to create a header file with the extension .h. SO I created a source file called header.h and put this at the top of the main:
#include "header.h"
But when I compiled it I got an error message stating that all the functions and variables that were set in header.h were unknown to the main. So is there a problem with the way that I created/linked the header file?
This book really doesn't explain how to create header files, it just tells you to do so. And all the other C++ books I could find were outdated, with a copyright of 1993 (even older than me). I would really appreciate some help. Thanks.