Hi all, I am so impressed with you, you do great with this stuff. I am at the end of my class, thank goodness. I will always have total respect for you!
I am completely lost. I think I have messed up and can't even figure out what I am doing wrong and what I need to do to make this compile. Please Please help me!!!!
//This is a personal address book that contains many enteries.
#include <iostream.h>
main()
{
struct AddressBook //header for structure and able to enter 10 people
{
char Name[15]; //declaring the name and size of 15 characters
char Address[15];
char City[25];
int age[3]; //declaring the age and 3 intergers
char zip[5];
char phonenumber[10];
};
input (void)
{
cout<<"Welcome to my address book!\n"
cout<<"Enter the information into the address book!\n";
cout<< Enter the Name: ";
cin.getline (Name, 20);
cout<<"Enter the address: ";
cin.getline (Address, 20);
cout<<"Enter the City and abbreviated state: ";
cin.getline (City,30);
cout<<"Enter the Zip code: ";
cin.getline (Zip, 6);
cout<<"Enter the phone number including area code (please do not add a hypen or space): ";
cin.getline (Phonenumber, 10);
cout<<"Enter the age of this person: ";
cin.getline (Age,3);
AddressbookOutput.write((char *)&AddressbookOutput, sizeof(AddressbookList));
}