Code:
void ANOMALY(string STARS[], string STARSIN[], float HIGH[], float LOW[], float SIGNAL[], int ANOMALIES[])
{
int temp;
for(int i = 0; i < MAX2; i++)
{
temp = SEARCH(STARS, STARSIN, i);
if(SIGNAL[i] > LOW[temp] || SIGNAL[i] > HIGH[temp])
{
ANOMALIES[temp]++;
}
i++;
}
}

is supposed to call this function

Code:
int SEARCH(string STARS[], string STARSIN[], int position)
{
int ct;
bool flag = true;

while(flag && ct < MAX)
{
if(STARS[ct] == STARSIN[position])
{
flag = false;
}
else
{
cout << STARS[ct] << endl;
cout << STARSIN[position] << endl;
ct++;
}
}

if(flag)
{
cout << "Error star " << STARSIN[position];
cout << " does not have any normals." << endl;
}

return ct;
}
I tried to run a stove or whatever and I got

Alpha Centauri
Betelgeuse
Polaris
Betelgeuse
Deneb
Betelgeuse
Altair
Betelgeuse
Betelgeuse
Altair
Error star Altair does not have any normals.
Error star Alpha Centauri does not have any normals.
Error star Deneb does not have any normals.
Error star Polaris does not have any normals.
Error star Deneb does not have any normals.

now all these stars do have normals and all my arrays work and have what they need in them, also the first function isn't recalling the second function it stops for some reason.

someone help please I need it desparately
AIM: azazelasends