Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

everytime i try to run a program in visual c++ express, the application exits.?

does anyone have a solution for this? thanks.

i tried ctrl+f5 but it doesn't work.

Update:

#include <iostream>

using namespace std;

int main ()

{

cout << "Hello World" << endl;

return 0;

}

2 Answers

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    Show the code. For sure it is not the fault of VC.

    .

    Source(s): TaZ
  • ?
    Lv 7
    1 decade ago

    Put some kind of user-input (from keyboard) statement right before the return 0; statement.

    When the program terminates, because it's the last program in the window, the window closes. This is normal for console applications.

    Hope that helps.

Still have questions? Get your answers by asking now.