string name,date,dateOfBirth,address,phoneNumber;
int age;
int citizenshipNumber,accountNumber,choiceForMenu;
float amount;
void createAccount(){
system("cls");
cout<< setw(40);
cout<< "ADD RECORD"<<endl;
cout<<endl;
printf("Enter today's date(mm/dd/yyyy):");
scanf("%s" , &date);
printf("Enter the name:");
scanf("%s", &name);
printf("Enter the date of birth(mm/dd/yyyy):");
scanf("%s" , &dateOfBirth);
printf("Enter the age:");
scanf("%d",&age);
printf("Enter the address:");
scanf("%s", &address);
printf("Enter the citizenship number:");
scanf("%d", &citizenshipNumber);
printf("Enter the phone number:");
scanf("%s", &phoneNumber);
printf("Enter the amount of deposit:");
scanf("%f", &amount);
system("pause");
}
After I input the address, the citizenship number, phone number, and amount deposited ends up being on the same line and not allowing me to input anything, so can anyone help me fix that problem. Thank you!