Header files contain importan macros that are commonly used in most C/C++ programs. These macros define some important keywords and functions you may use throughout your program. For instance, you cannot use the cout or the puts or any of the standard input/output fnuctions without including the stdio.h or the iostream.h.
the "->" operator is basically analogous to the "." operator, except you use it on pointers to objects instead of objects. Both of them will access the public members of that object.
1 2 3 4 5 6 7
myObject foo;
foo.do_a_thing();
std::cout << foo.value;
myObject* bar = new myObject;
bar->do_a_thing();
std::cout << bar->value;