ahh where to start.... how to teach a intro. to programming course in a paragraph...
wow, anyway here it goes, cause i don't have much time....
notepad won't do as an editor, unless you save it as raw text, as notepad will add chars to it for notepad formatting....
you need to use a programming editor, such as Visual C++, which will have commands to compile and build built in.
A program begins as a series of commands, which then have to be translated into assembly language (and then eventually into 1s and 0s so the computer can actually process them). This is accomplished with a compiler, which is what you are actually paying for (unless you use linux, in which case you can get a free GNU one).
So, you need a compiler to process your C++ into a program. I'm not sure if there is a free one for windows, may I reccomend you try linux (www.linux.org or www.linux.com or www.fedora.com to plug my fav) - you can get lots of free compilers on linux, and it is a great place to program.
Basically, when you program, you follow 3 steps...
1) write
You write the code.....
2) link
Your code is assembled into one piece (if it uses multiple files, such as includes, etc..)
3) compile
Your code is translated into machine language, so it can be read by OS/BIOS
Of course these are steps for programming languages such as C++, which are unlike JavaScript, which are scripting languages and are interpreted as they are run by an interpreter....
Good luck!