How to assign a name for a node ?AM I missing something here?
<pre><code>#include &lt;iostream&gt;

using namespace std;

int main()
{
    struct list
    {
        char name[20];
        int age;
        double height;
        list *next;
    };
    list *first, *temp, *temp2, *newlist1;
    first-&gt;next = temp;
    temp-&gt;next = temp2;
    newlist1 = new list;
    newlist1-&gt;name = "Steve";
    newlist1-&gt;age = 23;
    newlist1-&gt;height = 2.3;
    newlist1-&gt;next = temp2;
    temp-&gt;next = newlist1;
    newlist1-&gt;next = temp2;
    temp-&gt;next = newlist1;
    temp2 = newlist1-&gt;next;
    temp2-&gt;next = newlist1-&gt;next;
    delete temp2;
    cout &lt;&lt; " Name is: " &lt;&lt; newlist1-&gt;name &lt;&lt; " ";
    cout &lt;&lt; " Age is: " &lt;&lt; newlist1-&gt;age &lt;&lt; " ";
    cout &lt;&lt; " Height is: " &lt;&lt; newlist1-&gt;height;
}
</code></pre>

<p>Is this how you assign the name value to a node? ...I tried strcpy but it keeps saying strcpy isn't declared...or something else. Can someone please show me a code on how to assign name[20] char types onto a node please? I'm really having a problem with this :(</p>
