#include const int MAXNAME = 30; // maximum no. of characters in a name const int MAXTEL = 16; // maximum no. of characters in a telephone number struct TeleType { char name[MAXNAME]; char phoneNo[MAXTEL]; TeleType *nextaddr; }; int main() { TeleType t1 = {"Acme, Sam","(555) 898-2392"}; TeleType t2 = {"Dolan, Edith","(555) 682-3104"}; TeleType t3 = {"Lanfrank, John","(555) 718-4581"}; TeleType *first; // create a pointer to a structure first = &t1; // store t1's address in first t1.nextaddr = &t2; // store t2's address in t1.nextaddr t2.nextaddr = &t3; // store t3's address in t2.nextaddr t3.nextaddr = NULL; // store a NULL address in t3.nextaddr cout << endl << first->name << endl << t1.nextaddr->name << endl << t2.nextaddr->name << endl; return 0; }