Search:

Type: Posts; User: smokeyangel

Search: Search took 0.02 seconds.

  1. Replies
    20
    Views
    2,477

    Great :) Glad you worked it out for yourself....

    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:
  2. Replies
    20
    Views
    2,477

    Looking better in quite a few places! ...

    Looking better in quite a few places!



    AddInfo >> lineBuffer;
    while(AddInfo.good())
    {
    getline(AddInfo, lineBuffer, '\n');
    string *theFields =...
  3. Replies
    20
    Views
    2,477

    Your Y/N problem is because of: You're not...

    Your Y/N problem is because of:



    You're not checking "answer", you're assigning 'n' to it!
  4. Replies
    20
    Views
    2,477

    cout

    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...
Results 1 to 4 of 4