As @user4581301 specified that the programs runs and immediately quits so you are not able to see anything. So, we need something to pause the program.
#include <iostream>
using namespace std;
int main(){
cout<<"Hello World!"<<endl;
system("pause");
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…