#include #include using namespace std; int main(int argc, char *argv[]) { string first = "test"; string* second = &first; string** third = &second; string*** fourth = &third; string**** fifth = &fourth; string***** sixth = &fifth; cout << "First: " << first << endl; cout << "First Addr: " << &first << endl << endl; cout << "Second -> " << second << endl; cout << "Second Addr: " << &second << endl << endl; cout << "Third -> " << third << endl; cout << "Third Addr: " << &third << endl << endl; cout << "Fourth -> " << fourth << endl; cout << "Fourth Addr: " << &fourth << endl << endl; cout << "Fifth -> " << fifth << endl; cout << "Fifth Addr: " << &fifth << endl << endl; cout << "Sixth -> " << sixth << endl; cout << "Sixth Addr: " << &sixth << endl << endl; cout << "Sixth -> -> -> -> -> " << &(*****sixth) << " == " << *****sixth << endl; cin.get(); }