Is there any way to find out the length/number of pointers in an array of pointers?
i.e.
class Notifications {
iMessage **messages;
public:
Notifications();
Notifications(const Notifications&);
Notifications& operator=(const Notifications&);
Notifications(Notifications&&);
Notifications&& operator=(Notifications&&);
~Notifications();
void operator+=(const w5::iMessage&);
void display(std::ostream&) const;
}
How would I be able to find the number of pointers within the array?
std::vectorwill help you, as well as solving/preventing a lot of problems that might occur...