
C++ improve on may of C's features and provides object-oriented-programming (OOP) capabilities that will surely increase your productivity.
How to print Hello World in C++:
#include <iostream> /* header */
using namespace std; /* std declared */
int main ()
{
cout << "Hello World!"; /* printing Hello World */
return 0; /* end of program */
}

cout - printing your words on the screen. It also means printf in C.
- cout also partner the special character <<.
using namespace std
- std declared. We declare with this expression that we will be using these entities. You can see the difference in the next tutorial.
0 comments:
Post a Comment