No output window

Mar 26, 2016 at 7:42am
Hi I tried to run the hello world .cpp file, but no window is formed.
And I've tried system(pause), cin.get(); etc, and still nothing came out.
I doubt it's my computer's problem, does it matter that my system is window 10?

Here are the codes


// my first program in C++
#include <iostream>

int main()
{
std::cout << "Hello World!";
}
Mar 26, 2016 at 7:53am
What compiler/IDE are you using? It does not matter that you have Windows 10. I use Visual Studio with Windows 10.
Mar 26, 2016 at 11:08pm
Dev c++ version 5.11
Mar 26, 2016 at 11:20pm
First press F9 to compile.
If that is successful, press F10 to run the program.
Also, if it will not run, it may be an antivirus problem. I think Avast has been known to cause problems.
Last edited on Mar 26, 2016 at 11:23pm
Topic archived. No new replies allowed.