title: incompatible types in assignment of const char* to char
body: <p>So I trying to build this program that will take two <b>char</b> and a <b>double</b>. Once the user has input the information. I will transfer the information to an object by using the function below.
  But every time I try to compile i get this error <i>incompatible types in assignment of const char* to char [20]</i>. Can anyone give me a hand and clarify when im not understanding. Thanks in advance.</p>
  
  <pre><code>void Molecule::set(const char* sym, const char* type, double weighT);
  </code></pre>
  
  <p>And this how I call it.</p>
  
  <pre><code>molecule[i].set(symbol, description,weight);
  </code></pre>
  
  <p>And within the set() function I just have to transfer the values inpputed to my private member in my object which i did by using <b>this-></b> function.</p>
  
  <p>////So This part is supposed to transfer the value to my Class Molecule private members////</p>
  
  <pre><code>this-&gt;symbol_ = sym;
  this-&gt;type_ = type;      
  this-&gt;weight_ = weighT;
  </code></pre>
  
  <p>///////Here is my Class Molecule////////</p>
  
  <pre><code>class Molecule{
  private:
      char symbol_[20];
      char type_[20];
      double weight_;
  public:
      void set(const char* sym, const char* type, double weighT);
      void display() const;
  };
  </code></pre>