<分区>
Possible Duplicate:
ios::nocreate error while compiling a C++ code
我一直在研究如何在 c++/c# 中创建一个简单的词法编译器,但是当我尝试编译程序时似乎出现了错误
error c2065 'nocreate' undeclared identifier
我该如何处理这个问题??但我想这可能与 fstream header 有关,关于我如何处理它有什么想法吗??
这是给我错误的代码
loadTransitionTable( );
fstream File("input.txt", ios::in|ios::Nocreate);
if (!File)
{
cout<<"\n Unable to open the input file."<<endl;
cout<<"\n Press any key to exit.";
getch( );
exit(0);