FunctionX - Practical Learning Logo

A Simple C++ Program

This is the simples C++ program. It displays a sentence on the console or the terminal

Version 1

#include <iostream>
using namespace std;

int main()
{
	std::cout << "Welcome to the wonderful world of C++!!!\n";

	return 0;

}

Version 2

#include <iostream>
using namespace std;

int main()
{
	cout << "Welcome to the wonderful world of C++!!!\n";

	return 0;
}

Here is an example of running the program:
Welcome to the wonderful world of C++!!!

C++ Tutorial Copyright © 2001-2009 FunctionX, Inc.