I want to create a link list in C++.I am confused whether to use classes or structures.Is it possible to use pointer for referencing to the class objects and create linked lists with classes only ?
Also can i use the inbuilt lists of c++ to create a list of objects of classes?
I want to create a link list in C++.I am confused whether to use
Share
You should use
std::list. Then, it doesn’t matter what you use. For example: