>>I like to know exactly what's happening with a line of code before I include it in a program.
good luck looking through iostream...
>>Generally your own headers, and other non-standard headers should be included in quotes.
the only difference is that when you have the name in brackets <> it searches where your compiler tells it to search, and when you have it in quotes "" it searches the local directory, or where the file you're working on is... here's a quick overview on what your own header would look like:
Include Directory (sometimes it's: */[compiler]/include):
#ifndef FOO_H_ //not necessary, just makes sure it's only defined once
#define FOO_H_ //same here
char*message="Hello World"; //whatever code you need/want... usually a class
#endif //same here
notice the std:: in front of cout,endl, and cin... that's because those are all defined in the std namespace, and instead of dumping everything into this program, I'm just using those when needed... this example is bad programming, but it was only intended to give you a little bit of insight into how it kinda works and how to do it on your own... you'll learn more when you get into classes
#include<iostream> //search the directory, in this case, */[compiler]/include is listed,
//but don't worry about where it comes from for now
#include "Foo.H" //search the local directory
std::cout<<message<<std::endl; //output the message
std::cin.get(); //wait for input
return 0; //return 0 (not really all that necessary, but let's not start a war)