Error on CIN

I'm getting an error on the operator sign of cin >>The error says while trying to match the argument list. What is wrong here in my code that is prompting that error.

1
2
3
4
5
6
7
8
9
void open_makefile (string & filename, string & filename2, ifstream &in, ofstream& out)
{
	cout<<"Make a file for input: ";
	cin>>filename;



}
Anyone
Hello
What's the exact error?

There's nothing wrong with the code you posted, so the error has got to be coming from somewhere else.
Nevermind doublemain, I just fixed it! Thank you for your response though :)
Topic archived. No new replies allowed.