Program C++ Double Link List
Berikut adalah source code Program penggunaan Double Link List: #include <iostream> #include <conio.h> #include <stdio.h> //double linked list using namespace std; struct node{ char nama[20]; int umur; float tinggi; node *prev,*next; }; node *baru,*head=NULL,*tail=NULL,*bantu,*bantu2,*hapus; void buat_baru(){ baru=new(node); cout<<"Input Nama : ";cin>>baru->nama; cout<<"Input Umur : ";cin>>baru->umur; cout<<"Input Tinggi : ";cin>>baru->tinggi; baru->prev=NULL; baru->next=NULL; } void tampil(){ if(head==NULL){ cout<<"Kosong"; }else{ bantu=head; while(bantu!=NULL){ cout<<"Nama : "<<bantu->nama; cout<<" Umur : "<<bantu->umur; cout<<" Tinggi : "<<bantu->tinggi<<endl; bantu=bantu->next; } } getch(); } void tambah_belakang()...