Hey i have a HW to do an address book storing the names addresses and phone #s and add to address.txt. and the phone is the key so i have to create a search using the phone #. i'm also suppose to use a mygetline function that i don't quite understand yet can someone plz help and give me some ideas.
This is the HW link in case u didn't understand what i was saying.
This is what i started with.
#include<iostream.>
using namespace std;
struct Person
{
char Phone[30];
char Address[80];
char Name[50];
};
mygetline(phone); // will read the data up to '\n'
cin.ignore(); // will ignore '\n' and move course one location
mygetline(address); // reads the next input up to '\n'
cin.ignore(); //ignores '\n' and moves course after '\n'