int main(){ DLL list; int n,m,data,before; Node *contoh; /* cin >> n; for(int i=0;i<n;i++){ cin >> data; list.push_back(data); } cin >> m; for(int i=0;i<m;i++){ cin >> before; list.push_before(data); } */ list.push_back(10); list.push_back(30); list.push_back(50); contoh = list.find(10); cout << contoh->info << endl; //list.push_before(10); list.print(); return 0; }
int main(){ DLL list; list.push_back(10); list.push_front(20); list.push_front(30); list.push_after(10,50); list.del(20); list.print(); return 0; }