After creating the second object the constructor program wont ask what I use getline for : <p>So I am relatively new to C++ and I was doing a small project where I have the user enter a movie title, rating, and year. For the first run through, the program works well. After the user enters the desired information I print it back to the screen with no problem. However, when I create a second movie object to do the same thing during the same run it skips the section where it asks for the Title and goes directly to the rating. Any ideas? It's most likely a noob error. My Code is below.</p>

<p>MovieProject.cpp</p>

<pre><code>#include "stdafx.h"
#include "Movie.h"
#include &lt;iostream&gt;
#include &lt;string&gt;
using namespace std;

int main()
{
    Movie starwars;
    starwars.MovieTeller(starwars);
    Movie FerrisBueller;
    FerrisBueller.MovieTeller(FerrisBueller);
    Movie TheFoxandTheHound;
    TheFoxandTheHound.MovieTeller(TheFoxandTheHound);
    return 0;
}
</code></pre>

<p>Movie.cpp</p>

<pre><code>    #include "stdafx.h"
    #include "Movie.h"
    #include &lt;string&gt;
    #include &lt;iostream&gt;

using namespace std;

Movie::Movie()
{
    cout &lt;&lt; "What is the title of your movie:";
    getline(cin,Title);
    cout &lt;&lt; "What is the Rating:";
    getline(cin,Rating);
    cout &lt;&lt; "What year was it made:";
    cin &gt;&gt; Year;
    cout &lt;&lt; "\n" &lt;&lt; endl;
    if (Year &gt; 2016) {
        cout &lt;&lt; "Comon Dude stop messing around" &lt;&lt; endl;
        exit(404);
    }
}

void Movie::MovieTeller(Movie a) {
    cout &lt;&lt; "Title:" &lt;&lt; Title &lt;&lt; "\n" &lt;&lt; "Rating:" &lt;&lt; Rating &lt;&lt; "\n" &lt;&lt; "Year:" &lt;&lt; Year &lt;&lt; "\n" &lt;&lt; endl;
}
Movie::~Movie()
{
}
</code></pre>

<p>Movie.h</p>

<pre><code>#pragma once
#include &lt;iostream&gt;
using namespace std;
class Movie
{
public:
    Movie();
    ~Movie();
    void MovieTeller(Movie a);
private:
    string Title;
    string Rating;
    int Year;
};
</code></pre>
