So I was able to do part of a program, and only got stuck on one part. The program uses text input file to return things such as age and gender. However, The only thing that I couldn't get any output for was string name. For example, the input file had Joe Bob and the compiler returned your name is, but not Joe Bob. This is a hw questions so please hints only. I included <string> and all that other stuff. Like my book says, "it should read a string value from one line of an input file."
This is what I have:
cout << " Your name is " << name << endl;