Quote Originally Posted by vikasvijayan View Post
replace int marital as char marital[50]...instead of marital==1 use strcmp() function
That's what you would have said about C. In C++ you would use an std::string and == operator.