Bonjour,
Qu'est que c'est: " [Linker error] undefined reference to `fonc(char*, char*)' " ?
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 #include <cstdlib> #include <iostream> using namespace std; void fonc(char *k, char *j); int main(int argc, char *argv[]) { char a[10]; char b[10]; cout << "Entrer a: " << endl; cin >> a; cout << "Entrer b: " << endl; cin >> b; fonc(a,b); system("PAUSE"); return EXIT_SUCCESS; } void fonc(char *k , int *j) { cout << "Le premier est egal a: " << k << endl; cout << "Le deuxieme est egal a: " << j << endl; }
Partager