SIMPLE C++ INFORMATION
A header file is used in C++ to simplify code and add commands from the standard c++ library and other ones too. The default file extension for a C++ header file is *.h.    It basically merges its code with yours.  I do not expect you to need to know much about header files until later on.  To use them, type "include <filename.h>" at the top of your code.
Note:some compilers need to be set up so that they know where the headers files are, otherwise, they wont compile later.  

FUNCTIONS
Functions are used to hold the code and help simplify it.  They help keep the code clean as well.  Most functions return a value.  THe structure of a function is type of variable sent back, functionname(values to send to the function) {the code}.  If they dont need a value returned, they use void where the type of variable sent back should be.  An example of a function that returns a value is:
char auzy(a) {// the code is put here}.
In C++, the only time spaces are included is when they are in "".  THis means that char x=1 is the same as char x   =  1.  "//" is used in c++, like in javascript.  It is used to hide text which the programmer puts there.  Using annotations down the side of your code can greatly help because 6 months later, you wont remember what the code is meant to do.  If your annotations stretch longer then 1 line use */ "info here /*. Also, in C++, the code is contained within a function called main.  capitals in C++ DO Count so it must not be capital.  The main function is a void fuction, it doesn't return a value.  The compiler in source code will first read all the code outside of any functions and then will automatically start compiling the code in the main function, regardless of position.  Generally code in c++ isn't straight forward and you will need to scrowl up and down to work out what the program is doing.  You now can make your first program.  This program is the shortest program that is possible in c++.  DO NOT INCLUDE THE NUMBERS DOWN THE SIDE (eg. "1.") OR YOUR PROGRAM WONT WORK! I have inserted these for reference.

1.  //  Demonstration of the main function
2.  void main(){}

gee.... that was easy...  of course, it could have been written like: 

1.  //  Demonstration of the main function
2.  void main(){
3.  }

or 

1.  //  Demonstration of the main function
2.  void main()
3.  {
4.  }

the reason this can be done is because remember, c++ doesn't care about whitespace!  In fact, there are many possibilites!



|----------------------------------------------------------------------------------------------|
| THe main function in c++ is similar to "Private Sub Form_Load()" as they are the main loaders|
| for the code.  MS VB has full support for functions as well                                       |
------------------------------------------------------------------------------------------------