That's what I thought but my professor thinks different.
this is my assignment:
Write a function called printDate that takes a single record of the type Date as a parameter and returns nothing (return type is void). This function should display the contents of the input record, using cout, in a presentable manner.
Incremental testing: In main(), create a new record of type Date, initialize it, and then use printDate() to display it to the console.