what is the problem with this program?
Code:#include<iostream> #include<fstream> using namespace std; enum flag {no=0,yes=1}; int main() { flag setflag=no; fstream myfile("d:/hsys.dll",ios::binary); myfile.write((char *)&setflag,sizeof(flag)); if(!myfile) { cout<<"operation failed!!\n"; return 0; } return 0; }