1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
#include <fstream>
#include <iostream>
#include <string>
#include "personType.h"
#include "addressType.h"
#include "extPersonType.h"
#include "dateType.h"
using namespace std;
int main(){
//ofstream file;
//file.open("MyTxT.txt");
cout << "****************** Welcome to your address book. ***********************\n" << endl;
/*int month = 0,
day = 0,
year = 0,
input = 0,
x;*/
// make it an array 0f 500.
string first,last;/*,street,city,state,zip,relation,phoneNum;*/
//char choice;
extPersonType myExt;
//personType myPerson;
cout << "Enter the first name: ";
getline(cin,first);
cout << "Enter the last name: ";
getline(cin,last);
myExt.setName(first,last);
//cin.sync();
//cin.peek();
//
};
|