Ok, this might take some explaining. here goes.
In my program the user enters a full filepath and the program takes the filename and outputs access time, modify time, and size to screen and file until the user enters quit.

I ran into a segmentation fault just after the beginning of my main while loop (where user enters the filenames). the weird thing is that after i entered the third filename the seg fault happened.
(why 3?) also i put an ordinary cout<<"1\n"; at the very beginning of the while loop and my problems were solved.

why did this cout fix my segmentation fault?

If i my explanation is confusing or if any ?'s email me at [email protected] or post a message here |
V

-mungyun