Okay so this may be a little hard to follow, A because logic can be tough to get your head around without a visual aid & B i might not explain it the best haha.. so bare with me please...
ok so I have 4 .cpp files with their corresponding .h files; (Person.cpp/h) (ListNode.cpp/h) (LinkedList.cpp/h) and (HashTable.cpp/h)
The ListNode class contains a pointer to a persons data:
Code:
class ListNode{
private:
Person* data;
ListNode* next;
However there is multiple values stored in the person class... so I was wondering what would be the best method of storing the information in the (Person.cpp/h) implementation? Is there an effective way to store a collection of values which can later be individually accessed and manipulated?????
Thanks