//bismiallah
#include <stdlib.h>
 
typedef struct elt1  
{
     struct elt1 *nxt;
     struct elt1 *ptr;
    
}liste1;

typedef struct elt2  
{
     char cara;   
     struct elt2 *svt;
     
}liste2;
  main ()
{ 
liste1 *tet,*p ; liste1 *p1 ;liste1 *p2 ;liste1 *q;
liste2 *z,*k,*k1,*k2,*tet2  ;
int n,i,j,m;


liste1  *tet1  = malloc(sizeof(liste1)); /* allouer (tete)*/
tet->ptr=NULL; tet->nxt=NULL; p=tet;
for (i=1;i <=n-1;i++ ) 
{
  liste1  *q  = malloc(sizeof(liste1));
  q -> ptr=NULL; q->nxt=NULL; 
  p->nxt=q; p=q; 
}
p=tet ;q=NULL; 

for (i=1;i <=n-1;i++ ) 
{
    liste2  *tet2  = malloc(sizeof(liste2));
    printf (" donner les car");  scanf ("%c",tet2->cara); 
      tet2->svt=NULL;     k=tet2;
  
   
    for (j=1;j <=m-1;j++ ) 
    {
        liste2  *z  = malloc(sizeof(liste2));
        
         printf (" donner les car");     scanf ("%c",z->cara); 
          z->svt=NULL;    k->svt=z;
    
    }       
    p->ptr=tet2;
    p=p  ->nxt;
    
    
  
    
}
 
