C++ Compiles One File, but Runs Another File

Feb 14, 2013 at 6:13pm
Hi everyone,

I tried running an example from the C++ tutorials on structures (subsection "Pointers to Structures") and it appears to compile fine, but when I run the program, it randomly opens the Pointers.cpp file, a tutorial that I already went through before. Both files are in the same folder (don't know if this has something to do with it). Can anyone explain why this happens? My computer is a Samsung Notebook PC and has worked fine in the past.

Thanks,

John
Feb 14, 2013 at 6:20pm
Remove the previous source file (Pointers.cpp) from your project and add the one you want to build.
Topic archived. No new replies allowed.