Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~243 People Reached
Favorite Forums
Favorite Tags
c++ x 4
Member Avatar for TuteePink

I don't understand this code: T& operator[](int index); const T& operator[](int index) const; And, declared in the private is this: T *ptr; What does this mean?

Member Avatar for mrnutty
0
146
Member Avatar for TuteePink

I have a header file, but I don't know how to do it: I am new to templates. template <class T> class Array { public: Array(int l, int h); Array(int s); Array(const Array& other); ~Array(); T& operator[](int index); const T& operator[](int index) const; int get_size() const {return size;} private: int …

Member Avatar for TuteePink
0
97