DEV Community

Cover image for Cracking the Code: Decoding the 'Hello World' Program in C++"

Cracking the Code: Decoding the 'Hello World' Program in C++"

Tina Popli on May 30, 2023

The C++ Programming language was developed at AT&T Bell Laboratories in the early 1980s. The name C++ was coined by Rick Mascitti where "++" st...
Collapse
 
pauljlucas profile image
Info Comment hidden by post author - thread only accessible via permalink
Paul J. Lucas
  1. The .h extension has been deprecated. Should be just <iostream>.
  2. Your sample program won't compile. (You apparently didn't actually try it.) Why not is left as an exercise.
  3. You forgot the terminating newline in the output.
  4. You don't explain what << actually does.
  5. For main() only, return 0 is optional.
  6. For note (b), if you don't include main(), you can't even link your program into an executable. You can't even get to where it "does not begin."

Mistakes aside, this information is already widely available. What did you bring new to the table by writing this?

Collapse
 
tina_popli profile image
Tina Popli

Thanks for your review, i have edited it accordingly :)

Collapse
 
pauljlucas profile image
Paul J. Lucas

Now your indentation is wrong. It's like you don't even look at your own post to see how it looks.

Thread Thread
 
tina_popli profile image
Tina Popli

I believe it's indented now.

Some comments have been hidden by the post's author - find out more