#include #include using namespace std; #include "array.h" int main() { Array c(10, 3.2); cout << "c[0] == " << c[0] << endl; // c.operator[](0) cout << "c[10032] == " << c[10032] << endl; cout << "c[-27] == " << c[-27] << endl; c[0] = -5.0; cout << "c[0] == " << c[0] << endl; Array d(c); d = c; cout << "c[0] == " << c[0] << endl; cout << "d[0] == " << d[0] << endl; c[0] = -4.5; cout << "c[0] == " << c[0] << endl; cout << "d[0] == " << d[0] << endl; Array m(10); Array n(1000000); c = m = n; Array e(100); c = e; Array * a = &c; Array & f = e; Array s(3, "default"); s[0] = "Ciao"; s[1] = "Mondo"; cout << s[0] << endl; cout << s[1] << endl; cout << s[2] << endl; cout << s[3] << endl; }