Tuesday, May 20, 2014

Make Hello Word on C++

For everyone who start to study about programming, the first time to do absolutely is "HOW TO MAKE HELLO WORD ". 
Now we want to share how to make hello word on C++ language and for do that, follow this step by step.

1.  open you Graphic User Interface (GUI) application (ex: NetBeans, Dev C++, and the other). if you not have it, you can download on the official site.
2.  and then you just write the syntax code like on this box.

#include <iostream>

using namespace std;

int main()
{
 
  cout<<"Hello Word !";
 
  system("PAUSE");    
  return 0;
}


3.  after that, run the program. if you want, you can try this other syntax code.

#include <iostream>

using namespace std;

int main()
{
  char name;
  cin>>name;
  cout<<"Hello "<<name;
 
  system("PAUSE");    
  return 0;
}



0 comments:

Post a Comment