title: c++ How to initialize an array inside a class object?
body: <pre><code>class Node {
  public:
      float point[3];
  };
  
  int main(int argc, char** argv) {
      float p[3] = { 34, 90, 10 };
      Node *node = new Node();
      node-&gt;point = p;
      return 0;
  }
  </code></pre>
  
  <p>This doesn't work as expected.</p>
  
  <p>How should I initialize an array of a class object?</p>