Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ problem
#1
So I was trying out a hello world program. The code is as follows:

// A Hello World program
#include <iostream>
int main() {
std::cout << "Hello, world!\n";
return 0;
}

After debugging, basically shows hello world on a command print for the briefest of seconds and then vanishes. What's up with that? When I was using c# the command prompt window would stay open until I exited it. Is there a way to keep the hello world window open longer?
Reply


Messages In This Thread
C++ problem - by Haseo - 2011-12-29, 08:09 PM
C++ problem - by happylight - 2011-12-29, 08:16 PM
C++ problem - by Haseo - 2011-12-29, 08:32 PM
C++ problem - by Spaz - 2011-12-29, 08:38 PM
C++ problem - by nRxUs - 2011-12-29, 08:40 PM
C++ problem - by Haseo - 2011-12-29, 08:51 PM
C++ problem - by FenixR - 2011-12-29, 10:27 PM
C++ problem - by Spaz - 2011-12-29, 11:30 PM
C++ problem - by Jedward - 2011-12-30, 12:49 AM
C++ problem - by nRxUs - 2011-12-30, 11:02 AM
C++ problem - by FenixR - 2011-12-30, 11:45 AM
C++ problem - by nRxUs - 2011-12-30, 11:55 AM
C++ problem - by happylight - 2011-12-30, 04:47 PM
C++ problem - by Haseo - 2011-12-31, 12:39 PM
C++ problem - by FenixR - 2011-12-31, 01:05 PM
C++ problem - by happylight - 2012-01-02, 03:44 PM

Forum Jump:


Users browsing this thread: