📜  c++ list add - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:26.045000             🧑  作者: Mango

代码示例1
list myList = list();

//add a 4 to the end of the list
myList.push_back(4);

//add a 5 to the begining of the list
myList.push_front(5);