i got this error in the arrow line.help me out.
void stack::push(int x)
{
/*->>>>>>>>>> */ nodeType *n=new nodeType(int x);
n->next=this->head;
this->head=n;
length++;
}
it is stack.cpp file
i got this error in the arrow line.help me out.
void stack::push(int x)
{
/*->>>>>>>>>> */ nodeType *n=new nodeType(int x);
n->next=this->head;
this->head=n;
length++;
}
it is stack.cpp file
class nopdeType is expecting an integer, not a data type. Example: nodeType *n = new nodeType(5);
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.