Quote Originally Posted by Emotions
I changed it to look like.

Code:
  int enteredname;
the name should probably be a string unless you want your characters to be called by numbers

Code:
std::string enteredname;
(this should work with the rest of your code but I'm not 100% sure, also you probably will have to include the string header)

[QOUTE]
Line 22 'M' undeclared (first use this function)
Line 22 (Each undeclared identifier is reported only once
Line 22 for each fuction it appears in.)
Line 27 'F' undeclared (first use this function)[/QUOTE]

A character in c/c++ is always between single quotes so your if should be:

Code:
if ( sexofchar == 'M' )
a single letter on its own (in fact any non reserved keyword not surronded by quotes) is assumed to be an identifier of some kind nad therefore generates compiler errors