Chapter 1: Running Hello, World!
'Hello, World!' C Program
*Hello, World!' C Program
Guidelines on Commenting Code
- Assume the reader already knows the language - Write in full sentences with proper capitalization and puncation - Comment on unusual uses of the langauge - Try to comment in a way that is resilient to code changes - Comment at a high level (Pre/Post) - Convey your intention
The Compiler
A program that takes input source code files - in the case of .cpp and .h files - translates the textural source code found there into machine language, and links together all the predefined parts needed to enable the program to run on the specific computer.
Proper Program Qualities
Correct, Complete, Concise and Clear
Interpreted/Compiled Developmental Environments
Interpreted: Each line is evaluated and executed as it's entered and the results are immediately returned to the console (Python or Ruby). Compiled: Programs are entered into one or more files, then compiled all at once, and if no errors are found, the program can run as a whole (C,C++,C# or Objective-C).