开发者

Nested stl lists

开发者 https://www.devze.com 2023-03-23 03:53 出处:网络
I want to make an array of lists that contain a list. For example something like this list<list<int>> L[5];

I want to make an array of lists that contain a list.

For example something like this

list<list<int>> L[5];

Obviously this code doesn't work in all compilers.

Which is the best way to create this kind of struct cause i think i am t开发者_JAVA百科hinking wrong here.


This code should work and it's a possible approach to you task.

One guess is that >> should have a space in between for some compilers.

Like this:

list<list<int> > L[5];
0

精彩评论

暂无评论...
验证码 换一张
取 消