Home visual-studio error when starting the debugger in Visual Studio Express 2010

error when starting the debugger in Visual Studio Express 2010

Author

Date

Category

I decided to learn how to write programs, downloaded textbooks, I went to VSE wrote lines that were written in the textbook. Then I clicked “Start debugging”, but I write this

fails to run the program …
Could not find the specified file

And here is the code itself

# include & lt; iostream & gt;
INT MAIN () {
  STD :: COUT & LT; & LT; "Hello, World!" & lt; & lt; STD :: ENDL;
  Return 0;
}

Answer 1, Authority 100%

Your project contains errors: either not compiled or not linked. Therefore, in the folder where the executable file must lie, there is nothing and the debugger does not start.

Create a ready-made draft console application via Visual Studio template and experiment on it, then everything will be OK.


Answer 2, Authority 33%

Instead of

# include & lt; iostream & gt;

Try

# include & lt; ostream.h & gt;

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions