Linked list Recursion ...
        Posted  
        
            by epsilon_G
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by epsilon_G
        
        
        
        Published on 2010-03-29T03:26:42Z
        Indexed on 
            2010/03/29
            3:33 UTC
        
        
        Read the original article
        Hit count: 256
        
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 ...
© Stack Overflow or respective owner