#include #include using namespace std; struct month { //The blueprint for a structure containing 2 fields. string name; int length; //how many days }; void f(month *p); //function declaration int main() { month j {"January", 31}; f(&j); //Pass the address of the structure to the function. return EXIT_SUCCESS; } void f(month *p) //function definition { //Remember, p->name means the same thing as (*p).name cout << "The function received a structure containing " << "the string " << p->name << " and the number " << p->length << ".\n"; }