![]() | ![]() |
|
|
Gestione di varie liste
-Inserimento in una lista
-Cancellazione
-Stampa
-Lista bidirezionale
-Lista ordinata.
// ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****
//DICHIARAZIONE LIBRERIE
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
// ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****
//variabili globali
FILE *filew;
char N,SC,K;
struct elemento
elemento *P0,*P,*PREC,*Q;
// ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****
// ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****
void Crea1()
//chiusura del file
fclose(filew);
cout<<"\n\nPremi un tasto per continuare...";
SC=getch();
return;
// ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****
void Crealista()
// ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****
void Lista ()
else
else
//fine ciclo while
if ((*P).INFO<=(*Q).INFO)
else
}//fine 2°else
}//fine 1°else
}//fine while
fclose(filew);
cout<<"\nPremi un tasto per continuare\n";
K=getch();
return;
// ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****
void Emissione(int S)
else
}
fclose(filew);
cout<<"\n\nPremere un tasto per continuare...";
SC=getch();
return;
// ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****
void Visual()
else
while (P!=NULL);
}//fine else
cout<<"\n\nPremere un tasto per continuare...";
SC=getch();
return;
// ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****
//cancellazione di una lista ordinata
void Cancel()
cout<<"Immetti il carattere da cancellare ";
cin>>N;
elemento* Q;
if (P0==NULL)
if ((*P0).INFO==N)
else
if ((*Q).INFO==N)
else
}//fine else principale
return;
// ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****** 141g67b ** ** ****
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