I was trying to compile my C code when a fatal error came up.
the error is: >lab 10.obj : error LNK2019: unresolved external symbol "void __cdecl best(struct type_player * const,int)" (?best@@YAXQAUtype_player@@H@Z) referenced in function _main
// function prototypes that you have to develop
void read(struct type_player player[], int *N);
void check(struct type_player player[], int N);
void best(struct type_player player[], int N);
int main()
{
struct type_player player[100];
int N;
read(player, &N);
check(player, N);
best(player, N);
return 0;
}
void read( struct type_player type[], int *n)
{
int i=0;
FILE *fin = fopen("data.txt", "r");
if(fin == NULL)
printf("File could not be opened.\n");
else
{
fscanf(fin, "%d", &n);