Ah, I didn't see the && loc == -1. I was thinking his just returned the last match.
Quzah.
Type: Posts; User: quzah
Ah, I didn't see the && loc == -1. I was thinking his just returned the last match.
Quzah.
int array[6] = { 1,2,3,4,5,1 };
int answer = searchInt( array, 6, 1 );
Quzah.
Note that this does not necessarily give the same output as the first function.
Quzah.
I still don't know what you are trying to do:Your file has 2 columns. The first one says what? Go to line 1 and see if it's 7?
Quzah.
while (e==1)
{
int scoreCheck,idNum;
id[ctr]=idNum;
scoreCheck=searchInt(id,ctr,idnbr);
if (scoreCheck<0)
{
printf("not found\n");
fprintf(OutFile,"not...