我是noob,但我知道它不關心什麼是數據類型容器包含。 因此,這裏是我想要做的事:STL:容器的容器
std::deque<list<U32> > ReqLis;
和結果是下一:
error: ISO C++ forbids declaration of 'deque' with no type
error: invalid use of '::'
expected ';' before '<' token
但當代替它,我嘗試這樣做:
std::list<list<U32> > ReqList;
沒關係..................
問題是我是如此偉大的noob還是編譯失敗? 我正在使用gcc/g ++
做你的#include''? –
billz
你不應該使用'U32',但更好的'std :: uint32_t'。 – Walter
std :: deque>? –
zoska