Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. int main()
  2. {
  3. DriversLicense my_license1, my_license3("Superman", "01/01/1000");
  4. my_license1.printLicenseInfo(); // Prints the 5 data members on separate lines
  5. cout << endl;
  6. my_license3.printLicenseInfo();
  7. cout << endl;
  8. DriversLicense my_license2("Charlie Brown", "01/01/1980", "9201 University City Blvd. Charlotte NC 28223", 'm', "01/01/2020");
  9. my_license2.printLicenseInfo();
  10. cout << endl;
  11. cout << "Years to expiry " << my_license2.yearsToExpiry(2017) << endl;
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement