Linked list Recursion ...
- by epsilon_G
hey ,
I'd like to make a recursive function using C++
I make this class
class linklist
{
private:
struct node
{
int data;
node *link;
}*p;
void linklist::print_num(node* p)
{ if (p != NULL) { cout << p->data << " ";
print_num (p->link); }
}
in the main program what should I write ...