Olası Çoğalt: i C++/C# basit bir sözcük derleyicisi nasıl oluşturulacağı üzerinde çalışıyor
ios::nocreate error while compiling a C++ codekullanma ios :: "bildirilmemiş tanımlayıcı" hata içinde Nocreate bayrak sonuçları
ama ben hata i işleyebilir nasıl
error c2065 'nocreate' undeclared identifier
olan programı derlemeye çalıştığınızda i bir hata var gibi görünüyor Bu sorun değil ama im düşünme belki bu fstream üstbilgi, nasıl ele alabilirim üzerine herhangi bir fikir ile ilgisi var ??
bu bana
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);
deneyin? Eğer 'ios :: in' ile açarsanız (eğer ifstream' için varsayılan ise) eğer mevcut değilse, herhangi bir dosya oluşturulmaz. –
Lütfen bkz. Http://stackoverflow.com/questions/1062861/iosnocreate-error-while-compiling-a-c-code –