answersLogoWhite

0

C plus plus array-based lists

Updated: 12/23/2022
User Avatar

Wiki User

9y ago

Best Answer

If you mean an array where each element is a list, then the STL is your friend. To create an array of lists of any type T, use the following declaration:

std::vector<std::list<T>> my_array_of_lists;

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C plus plus array-based lists
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What must an opening brace in a C plus plus program be?

An opening brace must be terminated with a closing brace in C++. Braces are used to enclose code blocks and initialiser lists.


What is STL in c plus plus?

Standard Template Library. The STL basically provides templates for common containers, such as lists and queues, as well as functions, iterators and algorithms.


What is b plus b plus b plus c plus c plus c plus c?

b+b+b+c+c+c+c =3b+4c


What is c plus c plus 2c plus c plus c equal?

c + c + 2c + c + c = 6c


B plus b plus b plus c plus c plus c plus c equals?

b + b + b + c + c + c + c = 3b + 4c


Symplify c plus c plus c plus c?

4c


What is c plus c plus c plus c plus c?

c + c + c + c + c = 5 * c.


Primary and secondary key in c and c plus plus?

There are no "primary and secondary keys" in c and c plus plus.


What is c plus C plus C answer in algebra?

3c


What is the different between turbo c plus plus and unix c plus plus?

There is no such thing as 'unix C++'.


What to Do if Macros does not exist in C and C plus plus?

They do exist in C and C++.


If A equals 4.0GPA than C plus equals?

C plus is between 3 and 3.2. C = 75% 0% &lt; Plus &lt; 5% 75%+0% &lt; C Plus &lt; 75%+5% 75 &lt; C Plus &lt; 80% 75%*4 &lt; C Plus &lt; 80% * 4 (3/4)*4 &lt; C Plus &lt; (4/5) * 4 3 &lt; C Plus &lt; 16/5 3 &lt; C Plus &lt; 3.2