I get syntax error and missing type
<pre><code> #include "MyArrayList.h"

 MyArrayList::MyArrayList()
 {
size = 0;   
 }

 NODE* MyArrayList::list_create(void *data)
 {
NODE *node;
if(!(node=malloc(sizeof(NODE))))
    return (NODE*)NULL;
node-&gt;data=data;
node-&gt;next=NULL;
return node;
}

NODE *MyArrayList::list_add(NODE *node, void *data)
{
    NODE *newnode;
    newnode=list_create(data);
    newnode-&gt;next = node-&gt;next;
    node-&gt;next = newnode;
return newnode;
}
</code></pre>

<p>On  </p>

<pre><code>  NODE* MyArrayList::list_create(void *data)
 {


 NODE *MyArrayList::list_add(NODE *node, void *data)
{
</code></pre>

<p>myarraylist.cpp(8): error C2143: syntax error : missing ';' before '*'</p>

<p>myarraylist.cpp(8): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int</p>

<p>myarraylist.cpp(8): error C2065: 'data' : undeclared identifier</p>

<p>myarraylist.cpp(8): error C2761: 'MyArrayList::NODE *MyArrayList::list_create(void *)' : member function redeclaration not allowed</p>

<p>myarraylist.cpp(8): fatal error C1903: unable to recover from previous error(s); stopping compilation</p>

<p>Its a linked list</p>
