Geeks With Blogs

News View Steve Michelotti's profile on LinkedIn


Mark Pearl

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);
}
Posted on Saturday, February 20, 2010 2:48 PM C++ | Back to top


Comments on this post: C++ Visual Studio “Hello World”

# re: C++ Visual Studio “Hello World”
Requesting Gravatar...
Finally!
I've been trying to get a C++ programm that works for hours now, and this one finally did it.
Thanks a lot.
=^,^=
Left by Kira Resari on Aug 08, 2011 4:21 PM

# re: C++ Visual Studio “Hello World”
Requesting Gravatar...
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!
Left by Meteorix on Mar 02, 2012 7:21 AM

# re: C++ Visual Studio “Hello World”
Requesting Gravatar...
Fantastic! Thanks Mark! I needed a quick Hello world Test for testing Visual studio. Much appreciation!
Left by Adam on Jan 17, 2013 8:07 PM

Your comment:
 (will show your gravatar)


Copyright © MarkPearl | Powered by: GeeksWithBlogs.net | Join free