#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?