expected ; or : before { token error

here is my function
void enqueue(string name, int age)
{
node* newnode = new node(); //error here
newnode->set(name, age);
newnode->setnext(NULL);
rear->setnext(newnode);
rear = newnode;
size++;
size++
}
Topic archived. No new replies allowed.