Salut, mon problème : j’exécute mon code de tableau (array) :
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 | #include "stdafx.h" #include "iostream" using namespace std; int main() { int const nbrBestScore = 5; int bestScore[nbrBestScore]; bestScore[0] = 118218; bestScore[1] = 100432; bestScore[2] = 87347; bestScore[3] = 64523; bestScore[4] = 31415; for (int i = 0; i < nbrBestScore; i++) { cout << bestScore[i] << endl; } return 0; } |
..Je pense que j’ai tous fais comme il faut mais il parait que 2 erreurs persistes Les codes d’erreurs : 1:
Severity Code Description Project File Line Suppression State Error LNK2005 main already defined in Array.obj LearnC++ C:\Users\AdminHP\source\repos\LearnC++\LearnC++\LearnC.obj 1
Erreur 2 : Severity Code Description Project File Line Suppression State Error LNK1169 one or more multiply defined symbols found LearnC++ C:\Users\AdminHP\source\repos\LearnC++\x64\Debug\LearnC++.exe 1
Si quelqu’un poux m’aider, merci
+0
-0