I have me problem in finding the error in the folowing program.the program writes all the information in an encrypted form would you help me in making it readable please?
the program is:

#include <iostream>
using namespace std;
struct customer
    string fname;
    string Lname;
    int id;
int main()
  for(int i=0;i<2;i++)
 customer c;
 ofstream outfile;
 cout<<"enter fname"<<endl;
 cout<<"enter Lname "<<endl;
 cout<<"enter id"<<endl;

    return 0;
avarionist commented: i have reason to believe that you dont fully understand the code ask again when you have more knowledge. sorry but we can't help you if you can't isolate the error and tell us what the compiler is spitting out. sorry :( +0

You need to remove the "|ios::badbit" from the code. IT should work after that.