type Date

how do I get the type Date to work in the compiler?
There's no type Date.
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.

How would I do that with 'type Date'??
Are you sure a previous assignment wasn't to implement a type Date?
It is suppose to be a practice with records but I'm not sure how to write it. I kind of got it to work by going

struct date {


but then I have no clue from there
Topic archived. No new replies allowed.