C++ Address Book (2nd follow up) This will be my third post of this program, I have received a lot of great feedback and have learned a lot from the community. I have edited this program a lot, and am here for another review to see if I got it correctly. I had a hard time implementing one minor fix with output stream delimiter which was suggested in an earlier answer, but I believe I fixed the inheritance issues. Any other fixes would be very appreciated:

Person.h

#ifndef PERSON
#define PERSON
#pragma once

#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;vector&gt;
#include &lt;algorithm&gt;

class Person
{
    friend std::istream&amp; operator&gt;&gt;(std::istream&amp;,Person&amp;);
    friend std::ostream&amp; operator&lt;&lt;(std::ostream&amp;, const Person&amp;);
public:
    //comparison operator
    bool operator&lt;(const Person&amp;) const;
private:
    std::string name;
    std::string address;
};

#endif // !PERSON


Person.cpp

#include "Person.h"

bool Person::operator&lt;(const Person&amp; other) const {
    return name &lt; other.name;
}

std::istream&amp; operator&gt;&gt;(std::istream &amp;in, Person &amp;p){
    in &gt;&gt; p.name;
    getline(in, p.address);
    return in;
}

std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, const Person &amp;p) {
    os &lt;&lt; "Name: " &lt;&lt; p.name &lt;&lt; "\nAddress: " &lt;&lt; p.address;
    return os;
}


Address_book.h

#ifndef ADDRESS_BOOK
#define ADDRESS_BOOK
#pragma once

#include "Person.h"

class Address_book
{
    friend std::istream&amp; operator&gt;&gt;(std::istream&amp;, Address_book&amp;);
    friend std::ostream&amp; operator&lt;&lt;(std::ostream&amp;, Address_book&amp;);
public:
    //set vector size to match appropriate number of entries
    void Address_book::resize(size_t entries);
    void Address_book::sort();

private:
    std::vector&lt;Person&gt; add_book;
};

#endif


Address_book.cpp

#include "Address_book.h"

//fills address book
std::istream&amp; operator&gt;&gt;(std::istream&amp; in, Address_book&amp; abook) {
    for (int i = 0; i &lt; abook.add_book.size(); ++i) {
        std::cin &gt;&gt; abook.add_book[i];
    }
    return in;
}

//sort address book
void Address_book::sort() {
    std::sort(this-&gt;add_book.begin(), this-&gt;add_book.end());
}
//prints contents of address book
std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, Address_book&amp; abook) {
    for (int i = 0; i &lt; abook.add_book.size(); ++i) {
        std::cout &lt;&lt; abook.add_book[i] &lt;&lt; "\n";
    }
    return os;
}

void Address_book::resize(size_t entries) {
    add_book.resize(entries);
}


main.cpp

#include &lt;iostream&gt;
#include &lt;vector&gt;
#include &lt;string&gt;
#include "Address_book.h"
#include "Person.h"

void pause();

int main() {

    size_t entries = 0;

    std::cout &lt;&lt; "Enter number of entries to go in addressbook: ";
    std::cin &gt;&gt; entries;

    Address_book abook1;
    abook1.resize(entries);

    //input into addressbook
    std::cout &lt;&lt; "Enter the name, followed by the address:\n";
    std::cin &gt;&gt; abook1;
    //sort addressbook
    abook1.sort();

    //output addressbook
    std::cout &lt;&lt; "\n";
    std::cout &lt;&lt; abook1;

    pause();
}

void pause() {
    std::string pause;
    std::cout &lt;&lt; "Press any key followed by enter to continue...";
    std::cin &gt;&gt; pause;
}
This code is greatly improved!  Well done.  Still, there are some things that may help you improve your code.

Don't overspecify member functions

Within the Address_book.h file, the member functions are declared like this

void Address_book::resize(size_t entries);
void Address_book::sort();


But they should not include the class prefix in this context.  Instead, write them like this:

void resize(size_t entries);
void sort();


Be aware of signed vs. unsigned

Within the Address_book.cpp file, both functions include a line like this:

for (int i = 0; i &lt; abook.add_book.size(); ++i) {


However, size() often returns an unsigned number, so it would be prudent to make i unsigned as well.  I'd recommend std::size_t as in 

for (std::size_t i = 0; i &lt; abook.add_book.size(); ++i) {


Use const where practical

Usually, an extractor (operator &lt;&lt;) does not alter the underlying object.  This is true of your code as well, which is good.  But to make it explicit, declare the parameter as const.  That is, the friend function should be this instead:

std::ostream&amp; operator&lt;&lt;(std::ostream&amp; os, const Address_book&amp; abook);


Avoid the use of this in member functions

The code current contains this function:

void Address_book::sort() {
    std::sort(this-&gt;add_book.begin(), this-&gt;add_book.end());
}


However, it's usually not a good idea to explictly write this unless you have to.  I'd recommend shortening to this:

void Address_book::sort() {
    std::sort(add_book.begin(), add_book.end());
}


Think of the user

It's not so convenient to count the addresses manually first and then enter them.  Why not have the computer count them?  One simple way to do that would be to have a blank line or end of file signal the end of the input, avoiding the need for the user to manually count addresses first.