J << “]:t”; 106: std::cout
J << “]:t”;
106: std::cout << theArray[j] << “tt”;
107: std::cout << “theZoo[" << j << "]:t”;
108: theZoo[j].Display();
109: std::cout << std::endl;
110: }
111:
112: return 0;
113: }
Wynik
theArray[0]: 0 theZoo[0]: 0
theArray[1]: 2 theZoo[1]: 3
theArray[2]: 4 theZoo[2]: 6
theArray[3]: 6 theZoo[3]: 9
theArray[4]: 8 theZoo[4]: 12
theArray[5]: 10 theZoo[5]: 15
theArray[6]: 12 theZoo[6]: 18
theArray[7]: