Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

convert IntSLLNode to IntSLLNode for argument 2

$
0
0
#include <iostream>
#include "list.h"
using namespace std;
void printFB( int el,IntSLLNode *ptr);


void printFB( int el,IntSLLNode *ptr) {
       if (el!=0)
           {cout<<(ptr->info);
           printFB( el,ptr->next );}
           else
           if (ptr!=0)
          {
            printFB( el,ptr->next );
           cout<<(ptr->info);
       }
     }

int main()
{
    int el;
    IntSLList L1;
    IntSLLNode *ptr;

   cout <<"please Enter an Element"<<endl;
    cin>>el;
    for(int i=0;i<10;i++)
        L1.addToTail(i);
    cout<<printFB (el,*ptr);

    return 0;
}



m having error says that cant convert IntSLLNode to IntSLLNode for argument 2 to void printFB
any idea?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>