I am working on homework and wanted to know what this is actually defined as:
list < NAME > * m_ofList
Where name comes from a struct like so:
typedef struct name
{
int age;
int height;
} NAME;
I want to know what it is so I know how to insert to it or access it: push_back, insert, etc.
So I understand this now, but I am stuck because of some type of memory access: it produces a segmentation fault and I have been unable to figure this out. Where do I need to initialize my new list? it doesn't work in constructor or in the functions. Just FYI, it is a private list so it can only be used for member functions (i.e. m_ofList). I can produce code if anyone would like to help...
list < NAME > * m_ofListand thatstructdidn't come from the person teaching you C++?typedef structfor C++ ?