class Node
{
public:
int infor;
Node* link;
}*P;
void SLPostInsert(node* F,node* M, int x){
Node* N = new Node;
N -> infor = x;
link -> N = NULL;
if(F==NULL) F = N;
else {
N -> link = M -> link;
M -> link = N;
}
}
void SLTest(Node* F){
if(F==NULL){
cout<<"\nDanh sach rong!";
}
}
void SLDelete(Node* F, Node *M){
if(M==F) F = F -> link;
else
{
P = F;
while(P!=M) P= P->link;
P->link=M->link;
delete M;
}
}
moi nguoi chi e loi sai ak