I am getting this error "<< operator function should take two parameters"
I wanted to overload << operator so as to work like "cout<<s;" where s is a string object
You say you want to overload an operator, but you're doing it as if you want to define a function. There's a big difference in both syntax and meaning.
Use <iostream> and not <iostream.h>
Don't use <conio.h>
Use <string> and not <string.h>, or if you want to call your class lowercase "string" then don't include the string header at all.
As for your smaller problem, it has already been answered above.