📅  最后修改于: 2022-03-11 14:44:50.190000             🧑  作者: Mango
#include
using namespace std;
void display(list &lst){
list :: iterator it;
for(it = lst.begin(); it != lst.end(); it++){
cout<<*it<<" ";
}
}
int main(){
list list1;
int data, size;
cout<<"Enter the list Size ";
cin>>size;
for(int i = 0; i>data;
list1.push_back(data);
}
cout<