// PROG1704.CPP
// This program has removed the EnterData function and enters
// all Employee information in the main function.
// This is an example of very poor program design.


#include <iostream.h>
#include <conio.h>
#include "APSTRING.H"


struct Worker
{
   apstring FirstName;
   apstring LastName;
   apstring Street;
   apstring CityStateZip;
   apstring Phone;
   void MailAddress();
   void PhoneListing();
};


void main()
{
   clrscr();
   Worker Employee;

   cout << "Enter First Name     ===>>  ";
   getline(cin,Employee.FirstName);
   cout << "Enter Last Name      ===>>  ";
   getline(cin,Employee.LastName);
   cout << "Enter Street         ===>>  ";
   getline(cin,Employee.Street);
   cout << "Enter City State Zip ===>>  ";
   getline(cin,Employee.CityStateZip);
   cout << "Enter Phone Number   ===>>  ";
   getline(cin,Employee.Phone);

   Employee.MailAddress();
   Employee.PhoneListing();
   getch();
}


void Worker::MailAddress()
{
   cout << endl << endl;
   cout << FirstName << " " << LastName << endl;
   cout << Street << endl;
   cout << CityStateZip << endl;
}

void Worker::PhoneListing()
{
   cout << endl << endl;
   cout << LastName << " " << FirstName
	<< "  " << Street
	<< " ......." << Phone << endl;
}

