![]() | ![]() |
|
|
/*Gestione di una lista bidirezionale
-INSERIMENTO ORDINATO
-CANCELLAZIONE
-STAMPA DELLA LISTA DA UNA PARTE POI DALL'ALTRA.*/
// ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****
//DICHIARAZIONE LIBRERIE
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
// ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****
//variabili globali
FILE *fileC;
char N,SC,K;
struct elemento
elemento *P0,*P,*PREC,*Q;
// ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****
void Continua()
// ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****
void Crea1()
//chiusura del file
fclose(fileC);
cout<<"\n\nPremi un tasto per continuare...";
SC=getch();
return;
// ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****
void Crealista()
// ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****
void Lista ()
else
else
if ((*P).INFO<=(*Q).INFO)
else
}//fine 1°else
}//fine 2°else
}//fine while
fclose(fileC);
cout<<"\n\nPremere un tasto per continuare...";
SC=getch();
return;
// ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****
void Emissione(int S)
else
}
fclose(fileC);
cout<<"\n\nPremere un tasto per continuare...";
SC=getch();
return;
// ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****
void Visual()
else
while ((*P).PUNT2!=NULL);
cout<<"\n\nvisualizzazione dalla fine\n\n\n";
do
while (P!=NULL);
}//fine else
cout<<"\n\nPremere un tasto per continuare...";
SC=getch();
return;
// ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****
//cancellazione di una lista ordinata
void Cancel()
cout<<"Immetti il carattere da cancellare ";
cin>>N;
if (P0==NULL)
if ((*P0).INFO==N)
else
else
}
while ((F==1)||((*P).PUNT2!=NULL));
if(P==NULL)
}//fine else principale
return;
// ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****** 656g65g ** ** ****
void main()
while((SC<49)&&(SC>54));
switch(SC)
break;
case 50:break;
case 51:break;
case 52:break;
case 53:break;
case 54:break;
}//fine switch
}
while(1);
Privacy |
Articolo informazione
Commentare questo articolo:Non sei registratoDevi essere registrato per commentare ISCRIVITI |
Copiare il codice nella pagina web del tuo sito. |
Copyright InfTub.com 2025