Error in date_time example -- exp-print_holidays.html
Two errors in date_time/doc/exp-print_holidays.html In function print_date std::cout << d << " [" << d. should be std::cout << d << " [" << d.day_of_week().as_short_string() << "]\n"; and year is not defined in main() std::cout << "Enter Year: "; int should be std::cout << "Enter Year: "; int year;
David -- Thx for proofing these. Somehow this stuff wasn't picked up in the review, not to mention the by the author. If we could only compile html :-) Jeff
-----Original Message-----
Two errors in date_time/doc/exp-print_holidays.html
In function print_date std::cout << d << " [" << d.
should be std::cout << d << " [" << d.day_of_week().as_short_string() << "]\n";
and year is not defined in main() std::cout << "Enter Year: "; int
should be std::cout << "Enter Year: "; int year;
participants (2)
-
David Clark
-
Jeff Garland