13.11 һ飬10ԪأӼ10飬͵ļдš
#include <fstream>
using namespace std;
int main( )
{int a[10];
 ofstream outfile(f1.dat,ios::out);//ļ󣬴򿪴ļf1.dat
 if(!outfile)                        //ʧܣoutfile0ֵ
  {cerr<<open error!<<endl;
   exit(1);
  }
 cout<<enter 10 integer numbers:<<endl;
 for(int i=0;i<10;i++)
  {cin>>a[i];
   outfile<<a[i]<< ;}            //ļf1.dat
 outfile.close();                   //رմļf1.dat
 return 0;
} 