Istream can take only 2 parameters

check line number 185 of the code.
how can i resolve this issue because >> operator can only take 2 parameters and my insert at head function has 3 parameters. one way is to declare my tail pointer globally but is there any better solution.

another way i did was passing tail as head initially

you can do it like this also

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.