Need some info!

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?

P.S What's a compiler?

Thanks in advance!
ctrl+F5.. build is another term for compiling..
it comes with tutorial I suggest you read it first.

edit: and for starters only ever use "blank project" or w/e it's called. ("empty project") ?
Last edited on
I would also go to www.youtube.com to look for tutorials.... youtube has a lot of good tutorials for beginners...
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.
closed account (jwC5fSEw)
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".
closed account (jwC5fSEw)
Well, Code::Blocks also does projects. It just gives you the option to compile straight from a source file.
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.
looks like the kid just gave up..
Sad day for all
Topic archived. No new replies allowed.