#include using namespace std; struct node { int val; node *next; }; void insert(node *&H, int x); void WstawNaKoniec(node *&H, int x); void WstawZaX_Y(node *&H, int x, int y); void UsunElementX(node *&H, int x); void del(node *&H); void show(node *H); int main() { node *H=NULL; insert(H,5); show(H); insert(H,15); show(H); del(H); show(H); system("PAUSE"); return 0; } void UsunElementX(node *&H, int x) { cout<<"Napisz kod"<val=x; pom->next=H; H=pom; } void del(node *&H) { if (H!=NULL) { node *pom=H; H= pom->next; delete pom; } } void show(node *H) { node *pom=H; cout<<"HEAD ->"; while (pom!=NULL) { cout<val<<"->"; pom=pom->next; } cout<<"NULL"<