I am trying to take a file that has a lot of baby names for both boys and girls and numbering them based on popularity (these names are in 3 columns, column 1 = number, column 2 = boy name, column 3 = girl name), eg. 1 Noah Emma, what I need to do is take this file and make 2 vectors for boys and girls names and then use those vectors to write 2 separate files that each number the boys names and the other to number the girls names correctly. This is all I have at the moment. Some help would be much appreciated.
Ok that solves most of my problems but the only thing I need to use in this is vectors. I need to be able to store the names of boys in one vector and store the names of girls in another vector and then call on the vectors like you did in cout. I'm still pretty new to vectors and they just seem really confusing and I don't really understand how to use them yet.