bonsoir, j'ai un problème avec mon code c, j'ai une erreur de segmentation SVP quelqu'un peut m'aider
Merci portion du code ci-dessous
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
 for (i=0;i<=taille;i++)
     {	 
	if (tab1[i]!=100)
	   {
	    if (i<t)
		{
		 if ((tab1[i]+tab2[i])<26)
		   {
 
		    strcpy(s,mot);
       		    car[0]=table[tab1[i]+tab2[i]];
		    printf("%c\n",car[0]);
		    strcat(s,car);
 		    printf("%s\n",s);
 
		   }
		 else
		   {
		    strcpy(s,mot);
                    car[0]=table[tab1[i]+tab2[i]-26];
 
		    strcat(s,car);
 		    printf("%s\n",s);		    
 
		   }
		}
	     else
		{
		  if ((tab1[i]+tab2[i-t])<26)
		   {
		    strcpy(s,mot);
		    car[0]=table[tab1[i]+tab2[i]];
 
		    strcat(s,car);
 		    printf("%s\n",s);
 
		   }
		  else
		   {
                    strcpy(s,mot);
		    car[0]=table[tab1[i]+tab2[i-t]-26];
 
		    strcat(s,car);
 		    printf("%s\n",s);
 
		   }
		}
	   }
	else
	  {
	   strcpy(s,mot);
	   car[0]=text[i];
 
	   strcat(s,car);
 
	  }
 
     }
printf("ciphertext\n");
printf("%s\n",s);		 
return 0;