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.
My problem is that I do not know how to receive and name the variables for input for each structure. My book wont tell me how. This is all I have so far. I am stuck. For example , will the same variables be named for each member?
#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[4] = // initializing array of structs
{ firstName, lastname, dateOfBirth, telephone, Age}

New Topic/Question
Reply



MultiQuote





|