As the title suggests I am literally a complete beginner to C and C++ and I have an exam tomorrow that I am trying to prepare for. I have copied and pasted code I know for a fact works in Microsoft Visual Studio 2022, and whenever I press Local Windows Debugger first I get a pop-up saying “There were build errors. Would you like to continue and run the last successful build?” and when I press “Yes” almost instantly I get another pop-up saying “Unable to start program ‘[FILE PATH]’. The system cannot find the file specified. I apologize if I wasn’t descriptive enough I literally have no idea what to do.
I tried searching for the file and the file doesn’t exist. I also tried changing the Debugging location by going to Project > Properties > Debugging > Command and putting in the location where my project file is saved but then it gives a different pop-up saying “Access denied”.
Niko Vučina is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.