[Solved] C++ Hello World does not work


Remove the // from before the cout lines. Two slashes (i.e., “//”) tells the compiler “the rest of this line is a comment, so ignore it.”

One other quick suggestion: use a code editor that does syntax highlighting. Then you’ll visually see what’s a comment, what’s a keyword, etc.

2

solved C++ Hello World does not work