Source of hello1.cpp


  1: //hello1.cpp
  2: //Display a greeting.
  3: //Illustrate a using directive.
  4: //Such a using directive is often used for namespace std,
  5: //but should not be used for other namespaces.

  7: #include <iostream>
  8: using namespace std;

 10: int main()
 11: {
 12:     cout << "\nHello, world!\n" << endl;
 13: }