How to fix pointer to incomplete class type is not allowed error?

Mar 25, 2015 at 7:01pm
I'm getting a lot of this error in the following code

1
2
3
4
5
6
7
8
9
	node *ptr = new node;
	ptr->value = x;
	node *toinsert;
	if (!head)
	{
		head = ptr;
		head->prenode = head->nextnode = head;
	}
	else
Last edited on Mar 25, 2015 at 8:15pm
Mar 25, 2015 at 7:06pm
Mar 25, 2015 at 8:13pm
thanks!
Topic archived. No new replies allowed.