convert a line to a Node in C++
<p>I'm trying to write a function that takes a line as a <code>string</code> and converts it into a <code>Node</code>.</p>

<pre><code>Node convertLineToNode(string line){
    char lineC[] = line;
    Node *n = new Node();
    n-&gt;lastname=strtok(lineC," ");
    n-&gt;name=strtok(lineC," ");
    n-&gt;ID=strtok(lineC," ");
 }
</code></pre>

<p>However it doesn't work properly. It expects the <code>string</code> line as <code>char</code> array. I couldn't convert it into <code>char</code> array. Is there any solutions for my problem?</p>
