Materie: | Appunti |
Categoria: | Informatica |
Voto: | 2 (2) |
Download: | 175 |
Data: | 23.02.2007 |
Numero di pagine: | 1 |
Formato di file: | .doc (Microsoft Word) |
Download
Anteprima
esercizi-liste_1.zip (Dimensione: 7.08 Kb)
trucheck.it_esercizi-liste.doc 59 Kb
readme.txt 59 Bytes
Testo
Esercizi sulle liste
1.Creazione di una lista concatenata.
#include
#include
using namespace std;
struct elemento{
int inf;
elemento *punt;
};
struct elemento *crea_lista(int n); //restituisce il puntatore in testa
void main()
{
int n;
elemento *punt_lista;
punt_lista=new elemento;
cout