danh sách liên kết đơn***
#include<iostream> #include <string> #include <iomanip> using namespace std; struct sinhvien{ string ten; int tuoi; string diachi; }; struct Node{ sinhvien * data; Node * next ; }; struct Danhsach{ Node * dau; Node * cuoi; }; Danhsach * ds; void khoitao(){ ds = new Danhsach(); ds -> dau = ds -> cuoi = NULL; } void ktrarong(){ if (ds -> dau = ds -> cuoi = NULL) cout << "danh sach nay rong " ; else cout << "k rong " ; } void themcuoi(Node * node){ if (ds -> dau == NULL){ ds -> dau = ds -> cuoi = node; } else { ds -> cuoi -> next = node; ds -> cuoi = node; } } Node * getNode(string ten, int tuoi, string diachi){ Node * p = new Node(); p -> data = new sinhvien(); p -> data -> ten = ten; p -> data -> tuoi = tuoi; p -> data -> diachi = diachi; p -> next = NULL; return p; } void input (){ int n; co...