DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

C++ - Hello World

  • submit to reddit
 * Semplice esempio di Hello World !!!

#include <iostream>

using namespace std;

int main(int argc, char *argv[])
	cout << "Hello World !!!" << endl; // endl equivale ad un \n
	return 0;


Snippets Manager replied on Thu, 2006/02/09 - 12:52pm

Thanks for the correction, but in this way you include alone the necessary one?

Mateusz Loskot replied on Mon, 2006/01/02 - 10:22am

Here is my version with small fix. New C++ coders should be careful with using directive, so it's good to learn a right way to code in C++: int main(int argc, char *argv[]) { using std::cout; using std::endl; cout << "Hello World !!!" << endl; // endl equivale ad un \n return 0; }