Answer the question
In order to leave comments, you need to log in
What is generalization in c++?
Given the task:
Based on the PersonList class, make a generic List class that can store a list of data of any type.
Answer the question
In order to leave comments, you need to log in
It seems that here the term "generalized" does not refer to the language. Just follow the example to make the same list, but for any data.
For example, here is a list item:
struct List
{
struct List * next;
struct List * prev;
void * data;
int dataType;
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question