C++ compiler

Now you may be wondering, “What does this hello world program look like?”. To test it, download the Microsoft Visual C++ compiler Express edition at:

http://msdn.microsoft.com/vstudio/express/visualc/

This is free permanently!

Okay, now that you’ve downloaded your compiler (I’m assuming you have), launch the program. There are a few things you need to know. First you will need to register. This is pretty painless, and you get to download free icons and stock pictures. In addition, your user days are numbered if you don’t register, and eventually, Microsoft won’t let you use it until you register. How’s that for incentive?

Next, click “File”, “New”, “Project…”. There will be a pop-up window. Make sure that at the left “Win32″ is selected. Under a “Visual Studio installed templates” section, click on “Win32 Console Application”. For the name input box at the bottom, type whatever you want to name this, although “helloWorld” is recommended. Under that, type in (or browse) where you want to save this. I recommend either the desktop or something along the lines of “C:\My Documents\Visual Studio 2005\Projects”, depending on where the “My Documents” folder is. Press “OK”. There will be another pop-up window. Click “Finish”.

Now for testing.

Copy this into the part of the page that has a lot of complex code in it (replace all the complex code):

/*
* File: helloWorld.cpp
* Author: Lietk12
* Description:
* This program prints the message
* “Hello, World!” on the screen.
*/
#include “stdafx.h”
#include <stdio.h>

void main()
{
printf (”Hello, World!\n”);
}

When you’re done with that, click on the “Build” menu at the top, then click “Build Solution”. There will be a new thing that is called “output”. It tells you if there are any problems with the program. “Building” is basically making the program from the source code. If there are any problems with this program, post a comment or email me (I’m not sure how you would do that, unless I know you).

If it builds successfully, click the “Debug” menu and then click “Start without debugging”. It should launch the program.

Any questions?

0 Responses to “C++ compiler”


  1. No Comments

Leave a Reply




The Creative Commons license.

Creative Commons License
This blog and all content in it is proudly licensed under the Creative Commons Attribution Noncommercial Share-Alike 3.0 Unported License, unless specifically stated otherwise.

Read this first (or after the text above).

If you wish to read this blog, you must agree to my Terms of Use(lessness).
Most of you can just shrug this off and read it, but believe me, it's helpful when dealing with the threat of DMCA takedown notices and culture-of-ownership lawyers.
I'm actually fine if you just say, "Continue", because it still means that you agree to it. And as long as you're Lawful Good, it won't affect you.
(And it keeps the bots out (not!).)

Meta-thoughts through the ages.

August 2006
S M T W T F S
    Sep »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Archives. Papyrus not included.

Special posts. Everything here is mutually exclusive with its parent or child categories.

A blog for people and spambots. But we ignore the spambots.

Pageviews, because we're so addicted to metrics.

  • 11,791 minds corrupted.

Meta-thoughts around the world.

Yay! Visitors from the Southern and Eastern Hemispheres! (or just a few Tor users...)
Visitor Map
Create your own visitor map!