... liệumảngintseek(constT&key);//tìmkiếm trong mảnggọihàmintsearch(constT*list,intsize,constTkey);//tìmkiếm trong mảngcósẵn};template<typenameT>Array<T>::Array(intn){size=n;array=newT[size];}template<typenameT>Array<T>::~Array(){delete[]array;}template<typenameT>voidArray<T>::setValue(constT&value,intn){*(array+n)=value;}template<typenameT>T&Array<T>::getValue(intn){return*(array+n);LẬP TRÌNH C /C++ NÂNG CAOYêu cầu trước khi đọc: học xong Lập trình C /C++ căn bảnBÀI 1: NHẮC LẠI VỀ C /C++ Nhập xuất cơ bảnCODE#definemax(a,b)(a>b)?a:b//khaibáomacrotypedefunsignedintbyte;//địnhnghĩakiểudữ ... chonó}};Date::Date(intday,intmonth,char*special){this->day=day;this->month=month;this->special=special;}Date::Date(constDate&d){this->day=d.day;this->month=d.month;this->special=newchar[strlen(d.special)+1];//cấpphátbộ ... operator)CODEclassBase{public:Base&operator=(constBase&);friendbooloperator!=(constBase&,constBase&);private:char*c;};Base&Base::operator=(constBase&src){if(*this!=src){//toavoidself-assignmentdelete[]c;c=newchar[strlen(src.c)+1];strcpy(this->c,src.c);}return*this;}booloperator!=(constBase&b1,constBase&b2){return(strcmp(b1.c,b2.c));}Vàchúngtacóthể gọitoántử nàyBases2=s1;Thừa kế (inheritance) Trong C có thể sinh ra bug, trong C++ chúng sẽ được thừa kế.CODEclassBase{protected:intid;Base(intid){this->id=id;}};classSub:publicBase{public:intcode;Sub(intcode,intid):Base(id){this->code=code;}};Hàm...