I am compiling a code using code::blocks on Windows XP and I am getting this message:
Compiling: C:\Dev-Cpp\first-part.cpp
Linking console executable: C:\Dev-Cpp\first-part.exe
Process terminated with status 0 (0 minutes, 2 seconds)
0 errors, 0 warnings
and when I build and run the code I get this message:
Checking for existence: C:\Dev-Cpp\first-part.exe
Executing: C:\Program Files\CodeBlocks/cb_console_runner.exe "C:\Dev-Cpp\first-part.exe" (in C:\Dev-Cpp)
Process terminated with status -1073741819 (0 minutes, 21 seconds)
What's the difference between the two and how do I mitigate this and make it work?
2) I have an open file process as follows:
fstream myfile;
myfile.open ("data1.txt");
myfile << " p\n";
myfile << " ydisplacement2\n";
But when I run the code as explained above I never find this file on my hard drive. I am not sure what is going wrong.
I did make another text file using a simple code and it was located inside that directory, this one however is part of a big code (the one with the running problem) and can not be located anywhere on my hard drive. Is my syntax correct?