Need to know how to make a 2D arrays with just 2 lists. So I figured out in making a nested list. Tried: list<int> listA list< list<int> > listB but don't know how to push_back the outter list which would be listB within the programming codes. Also tried nested class: class listA { private: int k; class listB { ... } list<listB> B; public: ... } int main() { list<listA> A; ... } Yet tried that but unable to get class A to utilise functions in class B. So both my plans seems to get stuck somewhere...