title: incompatible types in assignment of ‘char’ to ‘char [100]’
body: <p>I am doing a review for school and I'm having a problem writing a function that creates a new struct and return a pointer to it.</p>
  
  <pre><code>// Review program
  
  #include &lt;iostream&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string&gt;
  #include &lt;stdio.h&gt;
  
  using namespace std;
  Book * makeBook(char * title, char * authorFName, char * authorLName, int numOfPages);
  
  struct PersonName {
      char first[50];
      char last[50];
  };
  struct Book {
      char title[100];
      PersonName author;
      int numOfPages;
  };
  
  int main()
  {
      char test[100] = "Hello, world";
      cout &lt;&lt; test &lt;&lt; endl;
      return 0;
  }
  Book * makeBook(char * title, char * authorFName, char * authorLName, int numOfPages)
  {
      Book newBook;
      newBook.title = *title;
  
      Book* pBook = &amp;newBook;
      return pBook;
  }
  </code></pre>
  
  <p>The error, in the title, occurs because of <code>newBook.title = *title;</code>. Any help wpuld be appreciated.</p>