Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- DriversLicense my_license1, my_license3("Superman", "01/01/1000");
- my_license1.printLicenseInfo(); // Prints the 5 data members on separate lines
- cout << endl;
- my_license3.printLicenseInfo();
- cout << endl;
- DriversLicense my_license2("Charlie Brown", "01/01/1980", "9201 University City Blvd. Charlotte NC 28223", 'm', "01/01/2020");
- my_license2.printLicenseInfo();
- cout << endl;
- cout << "Years to expiry " << my_license2.yearsToExpiry(2017) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement