Program help baby names

The names are in a txt. file and are categorized as 1. malename femalename.
One being the number symbolizing their popularity in 2004. What I've been attempting to program is a program that will read a requested baby name from the user. Scan through all the baby names using an Array and return what popularity the baby name has. Also what I don't have integrated into my programming is the fact that the female and male names are supposed to come up seperately in rankings. ie "Jacob is number 1 in boy name popularity" and "Jacob is not ranked in the girls names."

Let's start with your data structure:
so far you have a single array of characters; I think you need at least an array of strings. In fact, to store girls' names and boys' names, you probably want two arrays of strings, one called girls_names and one called boys_names. You should at least be using the std::string class to manipulate strings in C++. Depending on where you are in your learning-process, you may also want to consider using the std::vector container instead of C-style arrays. And you may want a higher-level data structure than just two separate lists of names.

Now, looking at your fillArray() function, you have declared boy and girl as a single individual char each. Again, you want each of these to be a string (preferably a std::string, or at least an array of chars). Then, it should be obvious to you, looking at your own code, that you don't actually store either boy or girl into your array.

So start with getting your data-types right, defining useful data structures (useful to solving your problem, not just to holding the data), and getting your data structures loaded from your input file. Once you have that much working, it will be easier to see how to update your search function, and then how to tell if it is doing what it needs to.