Great :) Glad you worked it out for yourself. That way of doing it is fine.
Previously I said:
The slightly "magic" C++ way I was going to suggest was:
Type: Posts; User: smokeyangel
Great :) Glad you worked it out for yourself. That way of doing it is fine.
Previously I said:
The slightly "magic" C++ way I was going to suggest was:
Looking better in quite a few places!
AddInfo >> lineBuffer;
while(AddInfo.good())
{
getline(AddInfo, lineBuffer, '\n');
string *theFields =...
Your Y/N problem is because of:
You're not checking "answer", you're assigning 'n' to it!
cout << "First and Last Name : " << endl;
string name;
getline(cin, name, '\n');
cin >> name;
Here you call getline then you use >> .
These are two different ways...