请问一下这个是是什么问题啊
#include<iostream>#include<fstream>
#include<cstdlib>
using namespace std;
int main(){
fstream open_mode;
open_mode.open(" f:\vc\vc++\1.c",ios::trunc);
if(!open_mode)
{
cout<<"Error occurred while opening f:\vc\vc++\1.c"<<endl;
abort();
}
open_mode<<"componentware Method and Neural Network."<<endl;
open_mode.close();
}
编译没有错,但是运行的时候却
[此贴子已经被作者于2005-12-3 19:38:23编辑过]