First i used to write little programs for school, then i stopped after the course was over. Now i want to write programs again but this time the new programs that i write wont run like they are supposed to.
Whenever I try to test a new program a different one runs, and it is the same one that runs every time. They compile fine and everything is good but when it actually runs this other program which i cannot even locate in my drive.
What is interesting is that this only happens to the my "new" programs, the ones i started writing when i was done with school. The rest work just fine.
I need help as this has really gotten into my nerves.
If you are pressing F9 to run your program and you get something else executing, then the IDE is, in fact, the problem. You may want to uninstall and reinstall it... (as I see no obvious reason why it should fail).
A possibility is that your program failed to compile and you are executing an old program that did compile.
What is interesting is that this only happens to the my "new" programs, the ones i started writing when i was done with school. The rest work just fine.
Did you notice this problem after an update? If you haven't updated, are you 100% sure it hasn't silently updated by itself?
Commercial IDE like Visual C++ have "Solutions". A Solution can contain multiple "Projects", and you must set which one is the active project to launch on the Execute button/key. Do you have something similar in your IDE? Maybe you created a solution for the first project, and let it as the active project when you added your new programs in the solution?