It seems that it's running fine, just you are not pausing the program to be able to see the output.
On the line after cout << "Hello World"; put cin.get();
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I watched a bunch of videos on how to run c++ codes in vs code but none of them helped me. I have tried doing a bunch of things like reinstalling vs code, changing task.json and launch.json file, reinstalling mingw files and all that and I still cant run any c++ program and I dont know what seems to be the problem. It would be great if anyone could help me.
here's a simple helloworld program for reference
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
It seems that it's running fine, just you are not pausing the program to be able to see the output.
On the line after cout << "Hello World"; put cin.get();
it worked...thank you for your help...i really appreciate it..