I tried searching for similar problems in here but all of them were too complex, I'm just starting out with C++ doing my Hello World, here's the code, just in case:
#include <iostream>
int main() {
std::cout << "Hello World!\n";
return 0;
}
It only works fine if I compile it then start without debugging and without rebuilding it (when it says it's out of date). If I start debugging it still says it's out of date but no matter if I rebuild it or not, the console shows up for like half a second then the program exits. Why is this?