title: C++ - Cannot convert from 'char []' to 'char[]'
body: <p>So I am very new to C++, and having a background in dynamic languages this is probably a newbie question. I was trying to write an age-old exercise, see below:</p>
  
  <pre><code>class Person
  {
  public:
      Person(char n[], int a) {           
          name = n;
          age = a;
      }
  
      int age;
      char name[];
  
  };
  
  int main(int argc, char const *argv[])
  {
      Person p("John", 25);
      return 0;
  }
  </code></pre>
  
  <p>This throws the error:</p>
  
  <pre><code>main.cpp(8) : error C2440: '=' : cannot convert from 'char []' to 'char []'
          There are no conversions to array types, although there are conversions
  to references or pointers to arrays
  </code></pre>
  
  <p>Why does it need to convert from the same type? This is my full code and full error, by the way. Any help is appreciated!</p>