can you some help me my file is not compile i got this example from the proffesor in class i dont really understand what it does can someone explain it to me. all i know it is supposed to open a file and write into it.
using namespace std;
friend istream &operator >>(istream cin, player &p)
cout<<"player name =>";
friend ostream & operator<<(ostream &cout, player &p)
int count =0;
cout<<"file opening eor";
cout<<"enter player data or ctrl-z to stop";