A family has 4 members. You need to write a program to store the information of the family members and then to display it. The information to be stored for each member are:
First Name
Last Name
Date of Birth
Telephone number
Age
The age needs to be calculated based on current date and the Date of Birth. All these information except the age should be obtained from the user and should be stored in an array. Once the array has been populated (for all 4 members), print the complete information about each member of the family.
#include <iostream>
struct inflatable
{
char firstName[10];
char lastName[10];
int dateOfBirth[10];
int telephone[10];
int Age[3];
};
int main()
{
using namespace std;
inflatable members[1] = // initializing array of structs
{ firstName, lastname, dateOfBirth, telephone, Age}// naming the members for input
};
Please edit your post and make sure your code is [code]between code tags[/code] so that it has line numbers and syntax highlighting, as well as proper indentation.