Not getting the code

what are istream and ostream and what is the use of these fucntion.

and also dont understand what are the meaning and importance of these fucntions.

ostream& operator<<(ostream &os,nodehead);
istream & operator>>(istream &is,node
head);

For this you must first refer and learn operator overloading concepts. It must be taught in the OOPS section of your course. Check that section.