C++ says hello world

Previously, I posted a couple of C examples. While C does not support OOP, I had to turn towards C++ for exam needs.

#include <iostream>

int main()  
{
    using namespace std;
    cout << "Hello world!" << endl;
    return 0;
}

Share this post