#include #include #include using namespace std; int main() { struct month { //The blueprint for a structure containing 2 fields. string name; int length; //how many days }; month j {"January", 31}; cout << "The name of the month is " << j.name << ".\n"; cout << "The length of the month is " << j.length << ".\n\n"; month *p {&j}; //p holds the address of j, i.e., p points to j. //Two ways to do the same thing. The second way is easier. cout << "The name of the month is " << (*p).name << ".\n"; cout << "The name of the month is " << p->name << ".\n\n"; //Two ways to do the same thing. The second way is easier. cout << "The length of the month is " << (*p).length << ".\n"; cout << "The length of the month is " << p->length << ".\n"; return EXIT_SUCCESS; }