// anounces the dinner time in military and standard formats // lifted from Deitel&Deitel p.368 // Mikhail Nesterenko // 10/15/99 #include #include "time.h" int main(){ Time dinnertime(18,30,0); // initializes the object to 6:30pm cout << "Dinner will be held at "; dinnertime.printMilitary(); // prints in military format cout << " military time, \nwhich is "; dinnertime.printStandard(); // prints in standard cout << " standard time.\n"; }