typedef struct {
int anInt;
float aFloat;
} IntAndFloat;
//-----------------------------------------------------------------------------
int main(void) {
IntAndFloat aNicePair;
IntAndFloat *pointAtAPair;
aNicePair.anInt = 27;
aNicePair.aFloat = -1.5;
cout << "1. int is " << aNicePair.anInt << ", float is " << aNicePair.aFloat << endl;
pointAtAPair = &aNicePair;
cout << "2. int is " << (*pointAtAPair).anInt << ", float is " << (*pointAtAPair).aFloat << endl;
cout << "3. int is " << pointAtAPair->anInt << ", float is " << pointAtAPair->aFloat << endl;
pointAtAPair->anInt = 16;
cout << "4. int is " << pointAtAPair->anInt << ", float is " << pointAtAPair->aFloat << endl;
return(0);
}