bool seen[649];
int seen_amt=-1; // This could be 0 depending on how you build up you program.
int pokemon_caught()
int i, amt=0;
for (i=0; i<649; i++){
if (caught[i] == true){
amt++;
}
}
return amt;
}
Not the best C++.Not really the best then, usually in c++ when I handle arrays I do something like this:
Code:bool seen[649]; int seen_amt=-1; // This could be 0 depending on how you build up you program.