0

Is in c++ help me do validation

#include <iostream> #include<cctype> #include<string> using namespace std; void PersonalDetails() { string name1,name2; int age;char gender; char mirital_Status; cout<<"Please Enter Your Fullname: "; cin>>name1>>name2; cout<<"Gender: Please press F for female or M for male: "; cin>>gender; cout<<"Please enter your age: "; cin>>age; cout<<"Marital Status : S for Single; M for Married: "; cin>>mirital_Status; //print out details cout<<"Your Details "<<endl; cout<<"==========

27th Jun 2017, 10:12 AM
Ahaa mark
Ahaa mark - avatar
1 Answer
0
from your code I can understand that you want to print the details obtained from user. you have defined the function but forgot to call it. your program will not print the input that it got from user as you are not printing the variables where the information is stored.
27th Jun 2017, 2:35 PM
Sandesh
Sandesh - avatar