Bonsoir tout le monde.
Voilà j'ai un problème avec le code qui suit, lorsque que je génère la solution Visual m'affiche ces 2 erreurs :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
Erreur	10	error LNK2019: symbole externe non résolu "int __cdecl DESTIN(char * const,struct vol * const)" (?DESTIN@@YAHQADQAUvol@@@Z) référencé dans la fonction _wmain	TD13.11.07.obj	
 
Erreur	11	fatal error LNK1120: 1 externes non résolus	C:\Documents and Settings\Propriétaire\Mes documents\Visual Studio 2005\Projects\TD13.11.07\Debug\TD13.11.07.exe	1
Voici le code :
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
 
typedef char CH10[11];
 
struct vol
{
	int numVol, numDest, nbTot, nbRes;
	float hDep;
};
 
int _tmain(int argc, _TCHAR* argv[])
{
	vol tab[60];
	char code;
	int i, j, k, c, res, numVolLu, numDestLu, nbTotLu, nbResLu;
	float hDepLu;
	CH10 destLu;
 
	int DESTIN(CH10, struct vol []);
	void RESERV(int, int, struct vol []);
 
	//Phase 1
 
	c=0;
	scanf("%d", &numVolLu);
	do
	{
		scanf("%d", &numDestLu);
		scanf("%.2f", &hDepLu);
		scanf("%d", &nbTotLu);
		scanf("%d", &nbResLu);
		tab[c].numVol=numVolLu;
		tab[c].numDest=numDestLu;
		tab[c].hDep=hDepLu;
		tab[c].nbTot=nbTotLu;
		tab[c].nbRes=nbResLu;
		c=c+1;
		scanf("%d", &numVolLu);
	}
 
	while(numVolLu!=0);
	for(i=1; i<9; i=i+1)
	{
		for(j=0, k=0; j<c; j=j+1)
		{
			if(tab[j].numDest==i)
				k=k+1;
		}
		switch(i)
		{
		case 1:
			printf("Berlin : %d vols prevus\n", k);
			break;
 
		case 2:
			printf("Francfort : %d vols prévus\n", k);
			break;
 
		case 3:
			printf("Lisbonne : %d vols prévus\n", k);
			break;
 
		case 4:
			printf("Londres : %d vols prévus\n", k);
			break;
 
		case 5:
			printf("Madrid : %d vols prévus\n", k);
			break;
 
		case 6:
			printf("Palerme : %d vols prévus\n", k);
			break;
 
		case 7:
			printf("Rome : %d vols prévus\n", k);
			break;
 
		case 8:
			printf("Vienne : %d vols prévus\n", k);
			break;
		}
	}
 
	//Phase 2
 
	code=getchar();
	while(code!='F')
	{
 
		switch(code)
		{
		case 'R':
			fflush(stdin);
			gets(destLu);
			res=DESTIN(destLu, tab);
			if(res!=0)
				RESERV(res, c, tab);
			code=getchar();
			break;
 
		case 'A':
			fflush(stdin);
			code=getchar();
			break;
 
		case 'H':
			fflush(stdin);
			code=getchar();
			break;
 
		default:
			fflush(stdin);
			printf("Code errone\n");
			code=getchar();
			break;
		}
	}
 
	//Phase 3
 
 
 
	return 0;
}
 
 
//Fonctions
 
int DESTIN(CH10 nom, int nbVols, struct vol Tab[])
{
	int i, j=0, k;
	/*switch(nom)
	{
	case "Berlin":
		j=1;
		break;
 
	case "Francfort":
		j=2;
		break;
 
	case "Lisbonne":
		j=3;
		break;
 
	case "Londres":
		j=4;
		break;
 
	case "Madrid":
		j=5;
		break;
 
	case "Palerme":
		j=6;
		break;
 
	case "Rome":
		j=7;
		break;
 
	case "Vienne":
		j=8;
		break;
 
	default:
		printf("Destination non servie\n");
		break;
	}*/
 
	if((strcmp(nom, "Berlin")==0))
		j=1;
	else if((strcmp(nom, "Francfort")==0))
		j=2;
	else if((strcmp(nom, "Lisbonne")==0))
		j=3;
	else if((strcmp(nom, "Londres")==0))
		j=4;
	else if((strcmp(nom, "Madrid")==0))
		j=5;
	else if((strcmp(nom, "Palerme")==0))
		j=6;
	else if((strcmp(nom, "Rome")==0))
		j=7;
	else if((strcmp(nom, "Vienne")==0))
		j=8;
	else
		printf("Destination non servie\n");
 
	if(j!=0)
	{
		for(i=0, k=0; i<nbVols; i=i+1)
		{
			if(Tab[i].numDest==j)
				k=k+1;
		}
	}
	if(k==0)
	{
		printf("Destination non servie ce jour\n");
		return k;
	}
	return j;
}
 
void RESERV(int nb, int nbVols, struct vol Tab[])
{
	int i, j=-1, k=0, nbDem;
	float hDepMin;
 
	scanf("%.2f", &hDepMin);
	for(i=0; i<nbVols; i=i+1)
	{
		if(Tab[i].numDest==nb)
		{
			if(Tab[i].hDep>=hDepMin)
			{
				j=i;
				scanf("%d", &nbDem);
				if(Tab[i].nbRes+nbDem<=Tab[i].nbTot)
				{
					printf("Reservation sur le vol : %d\n", Tab[i].numVol);
					Tab[i].nbRes+=nbDem;
					break;
				}
				else
					k=1;
			}
		}
	}
	if(i==nbVols)
	{
		if(j!=-1)
		{
			if(k==1)
				printf("Pas de place\n");
		}
		else
			printf("Aucun vol possible\n");
	}
}
Je pense que le problème vient des paramètres des 2 fonctions mais je ne sais pas quoi mettre à la place...
Merci de votre aide.

ps: le switch de la fonction DESTIN est en commentaire car Visual me dit qu'il ya un probleme de "const char" donc je l'ai remplacé par plein de if...