- 786 名前:デフォルトの名無しさん mailto:sage [2008/03/11(火) 21:43:47 ]
- コンパイルはVisualStudio2005 Command Promptで行いました。
フルパス名をコピペして、\を一つ減らしてエクスプローラーに貼り付けると正常に開けます。 #include <iostream> #include <fstream> #include <windows.h> using namespace std; int main(int argc, char **argv) { ifstream ifile("d:\\新規テキスト ドキュメント.txt"); if(ifile) { MessageBox(NULL, "success", "info", MB_OK); ifile.close(); } else { MessageBox(NULL, "failed", "info", MB_OK); } return 0; }
|

|