Académique Documents
Professionnel Documents
Culture Documents
h>
#include <stdio.h>
typedef struct ville Villee;
typedef struct ville {
char nom[25];
int possition ;
Villee *next ;
};
typedef struct {
Villee *premier ;
}Liste;
Liste *initialisation(){
Liste *list=malloc(sizeof(*list));
Villee *vill=malloc(sizeof(*vill));
vill->next=NULL;
list->premier=vill;
return list ;
vv0->next=lst0->premier;
lst0->premier=vv0;
Villee *temp=llist->premier;
while(temp != NULL){
printf("\n-----------------------\n NOM || Position || ADRESSE_SUIV \
n-----------------------\n ");
printf(" %s || %d || %d\n",temp->nom,temp->possition,temp->next);
temp=temp->next;
}
}
int main(){
Liste *maliste=initialisation();
Villee v1;
insertion_entete(maliste , v1);
afiicher(maliste);
}