... Array<T>& a1,const Array<T>& a2) { if(a1.size!=a2.size) return true; else for(int i=0;i<a1.size;i++) if(*(a1.elems+i) == *(a2.elems+i)) return false; os<<p.getAge()<<endl; ... a.setValue(Person (24 ),0); a.setValue(Person(15),1); a.setValue(Person(5) ,2) ; cout<<a; Array<Person> b(3); cout<<equal(a,b)<<endl; return 0; } Giải thích: equal và operator<< ... *nix và console. Hãy đem 3 tập tin này (array.h, array.cpp, main.cpp) và thử biên dịch bằng GCC trong Linux thử xem. Nhớ tạo makefile. Trong trường bọn tôi chủ yếu làm việc bằng GCC và VI...