Hi guys
Im trying to overload the [] operator so I can read and write into an object.
Ex.
I dont know the syntax for overloading user defined template classesCode:Arrray_class <int> age; age["Bob"]=30;
I tried this...
But that doesnt work. Any ideas?Code:template<class T> void &Array_class< T > ::operator[](); { }
Thanks