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?
Bookmarks