posts - 293 , comments - 413 , trackbacks - 0

My Links

News

View Steve Michelotti's profile on LinkedIn

Twitter












Tag Cloud

Archives

Post Categories

My Online Presence

C++ Visual Studio “Hello World”

Okay… so I know this is really simple stuff – but sometimes you just need a sample hello world. Here is the c++ version for VS2008.

 

#include <iostream>
using namespace std;

int main()
{
    cout << "Hello World" << endl;
    system("PAUSE");
    return(0);
}

Print | posted on Saturday, February 20, 2010 2:48 PM | Filed Under [ C++ ]

Feedback

Gravatar

# re: C++ Visual Studio “Hello World”

Finally!
I've been trying to get a C++ programm that works for hours now, and this one finally did it.
Thanks a lot.
=^,^=
8/8/2011 4:21 PM | Kira Resari
Gravatar

# re: C++ Visual Studio “Hello World”

Thanks !

I have a Q ?
Why it is different with VB that with other programs ?
In VB I had to add #include "stdafx.h" otherwise the prog does not work.

I tried with Dev and it never works!
3/2/2012 7:21 AM | Meteorix
Gravatar

# re: C++ Visual Studio “Hello World”

Fantastic! Thanks Mark! I needed a quick Hello world Test for testing Visual studio. Much appreciation!
1/17/2013 8:07 PM | Adam
Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 
 

Powered by: