Okay, so, I haven't worked with C++ in a very long time, so I figured I'd make a simple(Well, medium difficulty for me, since I don't know much about making functions.) The problem is that instead of closing out of the console window, it...well, doesn't close out of the console window. Here's the source code:
1. If gender == male, it is still != female and != other
2. You already checked all three aces above, so why do you even need the if? Just leave it as an else.
Well, I got the program to close by putting return 0; after the 3 naming(); that were in the if statements. The program seems to work fine, but I did change elseif (gender != "male" || gender != "female" || gender != "other") to elseif (gender != "male" && gender != "female" && gender != "other")