Hi, I'm actually a young boy (14 years old) who thought this might be a fun thing to learn. It's a but difficult for me, but I'm getting the hang of it.
I had a simple question: I have Visual C++ (c++ compiler), and when I type in the c++ coding, where do I hit run or something where I can see the output. Like on this website, the first tutorial (Structure of a program). It had that beginners coding that said Hello World! I'm a C++ program. Well I typed the codeing into Visual C++, so what do I press to see the output? And it keeps asking for build. What's that?
VS is technically an IDE (integrated development environment). It is a combination of a compiler (and of course, linker and preprocessor) and text editor (in this case, an augmented text editor with enhanced code formatting).
You can't just throw code and get a program. At least, not quite. Code does not the program make. When you have source code, you first send it to a preprocessor. The preprocessor module then gathers together the dependencies (such as #includes) for your prog and combines them into it. This is followed by the compiler, which "compiles" the code. Essentially, it translates it into machine instructions in the form of libraries and objects. Finally, the linker takes those object files and links them into an executable, dll or whatever your end output is. All this information can be found on wikipedia.
To run the program, you must therefore build it first. VS draws the distinction between building (which compiles all the source codes in a project) and compiling (which is the compilation of only the current source). Then you can run from within the IDE.
Hey, I'm also 14 learning C++ for the same reason! I love to see other people my age interested in programming, seeing as none of my friends are.
The thing about VC++ is that you can't just have a source code file. You need to put the source code in a project as a resource file, then build the project. It's actually for that reason that I switched to Code::Blocks (well, that and I wanted to use the g++ compiler, but that was a more minor choice); in C::B, you can compile a single source file into a program, which is FAR more convenient for a beginner like me who's writing a bunch of exercises.
I personally like the ability to wrap it all in a project. It adds a bit of delay to "impulse" coding but it simplifies the process of linking sources and managing "projects".
Well, Coding is fun. you should do everything you want to do. and check it carefully. if you have an ideal. coding it . and F10 and F11 will help you to known details about runing of your code. I start C++ and other language by coding simple games. hope this can hlep you.