Source of hello2.cpp


  1: //hello2.cpp
  2: //Display a greeting.
  3: //Illustrate using declarations.
  4: //Such using declarations should be used
  5: //for any namespace other than namespace std.
  6: //In particular, they should be used for the
  7: //utilities module, which is in namespace Scobey.

  9: #include <iostream>
 10: using std::cout;
 11: using std::endl;

 13: int main()
 14: {
 15:     cout << "\nHello, world!";
 16:     cout << "\nHow are you?\n" << endl;
 17: }