I know the following will look weird but I am simply not able to understand how string passing works.

#include<iostream>
#include<ctype.h>
#include<fstream>
using namespace std;

void myfilemaker(char *fn);

int main(void){
char fn[20];
cin>>fn;
myfilemaker(&fn[0]);
system("pause");
}

void myfilemaker(char &fn[0]){
ofstream.myfile;
myfile.open(fn[]);
myfile<<"Something";
myfile.close;
return;
}

Please tell me how to pass the string. I have tried tweaking the fn variable a bit but nothing seems to work.