title: struct output with cout, and function call struct parameters
body: <p>So, the problem is several errors at compile time. </p>
  
  <pre><code>ReadMovieData(string* title, string* director) cannot convert from movieInfo to string*
  
  DisplayMovieData(string title, string director) cannot convert from movieInfo to string
  
  No operator found which takes a right-hand operand of type 'movieInfo' (or there is no acceptable conversion. 
  </code></pre>
  
  <p>The bottom error happens twice in DisplayMovieData() so I wrote it once for simplicity sake. </p>
  
  <p>The ReadMovieData function should accept a structure pointer reference variable and the DisplayMovieData function should accept a MovieInfo structure variable. </p>
  
  <p>The main function creates an array of 2 MovieInfo struct variables and the other functions should be called on an element of the array. </p>
  
  <p>The code I have finished is below.</p>
  
  <pre><code>#include &lt;stdafx.h&gt;
  #include &lt;string&gt;
  #include &lt;iomanip&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
  //prototypes
  int ReadMovieData(string* title, string* director);
  int DisplayMovieData(string title, string director);
  
  struct movieInfo {
      string title, director;
  };
  
  int main(){
  
      const int SIZE = 2;
      movieInfo movieList[SIZE];
      movieInfo movie;
  
      //supposed to assign data to movieList[i] at some point
      for (int i = 0; i &lt; SIZE; i++){
          ReadMovieData(movie, movie);
          DisplayMovieData(movie, movie);
      }
      return 0;
  }
  
  int ReadMovieData(movieInfo &amp;title, movieInfo &amp;director){
  
      movieInfo movie;
  
      //get the movie name
      cout &lt;&lt; "What is the movie? ";
      cin.ignore();
      cin &gt;&gt; movie.title;
  
      //get the movie director
      cout &lt;&lt; "What is the director of " &lt;&lt; movie.title &lt;&lt; "?";
      cin.ignore();
      cin &gt;&gt; movie.director;
  
      return 0;
  }
  
  int DisplayMovieData(movieInfo title, movieInfo director){
  
      cout &lt;&lt; "The movie name is: " &lt;&lt; title &lt;&lt; endl;
      cout &lt;&lt; "The director of " &lt;&lt; title &lt;&lt; " is: " &lt;&lt; director &lt;&lt; endl;
  
      return 0;
  }
  </code></pre>