문제

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 thinking 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];
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top