This program simply prints the text “Hello, world!” to the console. To run this program, you can use the following steps:
- Open Visual Studio Code.
- Create a new file and save it as
hello_world.cpp
. - Copy and paste the code above into the file.
- Click the green play button in the top right corner of the editor.

#include <iostream> int main() { std::cout << "Hello, world" << std::endl; return 0; }
This will compile and run the program, and you should see the text “Hello, world!” printed to the console.
You can also use the following keyboard shortcuts to run your program:
Ctrl
+Shift
+B
– Compile and run the current file.F5
– Run the current file.

good bro