Advertisement
matteopunk1

rubrica

Apr 30th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. #include<string.h>
  4.  
  5. typedef struct Nodo{    //typedef serve a dichiarare un nuovo tipo di variabile, in questo caso la variabile è struct nodo.
  6.     char nome[20];
  7.     char cognome[30];
  8.     int anno;            //Valore contenuto nella strutture, è il valore che andrò a modificare nelle funzioni e che si vede quando stampo la lista.
  9.     Nodo *next;         //è una variabile di tipo nodo che punta alla struttura successiva.
  10. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement