MyProject // payroll.cpp
is here
|
+--- Debug // payroll.exe is here
If you run the program from within Visual C++ (using the menus or toolbar), then the input file should be in the same folder as the source code file (MyProject in this case). The output file will be created in the same folder as the input file.
Note for command-line fans: if you run the program from the DOS command line, then you should have the input file, workers.dat, in the same folder as the executable (Debug in this case).
That seems a bit screwy, but that's the way Visual works.