Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void AgregarOrdenado (struct lista **L,int num){
- struct lista *act=(*L), *ant=(*L), *nue;
- Inicializar(&nue,num);
- while((act!=NULL) && (num>((act)->num))){
- ant=act;
- act=act->sig;
- }
- if((*L) == act){
- nue->sig=(*L);
- (*L)=nue;
- }
- else {
- nue->sig=ant->sig;
- ant->sig=nue;
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement