Share Pastebin
Guest
Public paste!

fsdfsdfs

By: a guest | Mar 22nd, 2010 | Syntax: None | Size: 0.50 KB | Hits: 33 | Expires: Never
Copy text to clipboard
  1. //main.cpp
  2. //Program to demonstrate the function equal.
  3.  
  4. int main( )
  5. {
  6.     //Create objects today and Bach's birthday which is 21th of March
  7.  
  8.  
  9.     cout << "Enter today's date:\n";
  10.     today.input( );
  11.     cout << "Today's date is ";
  12.     today.output( );
  13.  
  14.     cout << "J. S. Bach's birthday is ";
  15.     bachBirthday.output( );
  16.  
  17.  
  18. if ( equal(today, bachBirthday))
  19.         cout << "Happy Birthday Johann Sebastian!\n";
  20.     else
  21.         cout << "Happy Unbirthday Johann Sebastian!\n";
  22.     return 0;
  23. }