declaring and using functions in a class

This is a discussion on declaring and using functions in a class within the C++ Programming forums, part of the General Programming Boards category; The point of my program is to read in a file that lists people like this:
first name, last name, ...

declaring and using functions in a class

So if a person is hisapnic, represented by 'H' then the type of hispanic they are follows. If they are not hispanic, 'N', then thier race follows. Being hisapnic is not your race, you can be hispanic and another race. I have the basic class made up but am having trouble to get all of the data to get to a file after being sorted. I can not figure out a way to tell if they are hispanic and if so print out their type and if not just move on to race. I've tried using a bool but I get an error and think I am not writing the code correctly. Below is the code I have written so far.