When i have multiples files (not project files) opened in the view window,if i click on a file and open it and then if i click run, that program builds and runs fine.
But when i have multiple project files,this doesn't happen .
If i have multiple projects opened,then the last project file with main() always gets called each time i press build and run,no matter which file is open in the view window at the moment.
How to run one single file from all these files?
Right click on the program you want to compile and "activate" the project, then compile that program. Any time you want to switch to another program activate that other program.