Sunday 26 July 2015

  • Sunday, July 26, 2015

C++ hello world example

#include<iostream>
 
using namespace std;
 
int main()
{
 cout << "Hello World\n";
 return 0;
}

C++ hello world class program

#include<iostream>
 
using namespace std;
 
// Creating class
 
class Message
{
  public:
 
    void display() {
      cout << "Hello World\n";
    }
};
 
int main()
{
 Message c;    // Creating object
 c.display();  // Calling function
 
 return 0;
}
Related Posts Plugin for WordPress, Blogger...

Vacancy

RBI has announced the recruitment for 134 GRADE B OFFICERS.
 The examination will be in two phases.
 The detailed advertisement will be published on 5th October.

Popular Posts