im very new to c++ so i might be missing something but when i try to run a very simple hello world program...
it opens and closes immediately. i asked my friend and he told me that i need to run a while loop, so i made it do a ridiculous never ending ask to keep it open but it still closesCode:#include <stdio.h> int main() { printf("Hello World\n"); return 0; }
can anyone help me?Code:#include <stdio.h> int main() { printf("Hello World\n"); return 0; int j = 1; while (1 == 1); j = j + 1; }