1.How to use this book
- 1.1Feedback
- Some terms to be familiar with
2.Walkthrough of a simple program
- 2.1Pre-processor Directive
- 2.1.1Including
- 2.1.2Defining constants
- 2.2void main()
- Functions
- Entry Point
- 2.3Console Ouput
- Streams
3.Introduction to Identifiers
- 3.1A quick example
- 3.1.1Declaration
- 3.1.1.1Naming Rules
- 3.1.1.2Naming Conventions
- 3.1.1.3Code
- 3.1.2Console Input and assignment
- 3.2Theory
- 3.2.1Datatypes
- 3.2.1.1Fundamental Datatypes
- 3.2.1.2Modifiers
- 3.2.2Variables in memory
- 3.2.3Putting it all together
4.Writing Beautiful Code
- 4.1Style Guide
- 4.1.1Spacing
- 4.1.2Indentation
- Tab Size
- 4.1.3Round Brackets
() - 4.1.4Curly Brackets
{} - 4.1.5Comments
- 4.1.5.1Block comments or Multi-line comments:
- 4.1.5.2End-of-line comments:
- 4.1.6Variable naming
5.Cascading
- 5.1What is cascading?
- 5.2How to cascade.
6.True and False
- 6.1Relational expressions and logical operators
- 6.2Operations
- Expressions
- 6.3Applications
- 6.4Order of evaluation
- 6.4.1Questions:
- 6.4.2Answers:
7.Increment and Decrement
- 7.1Postfix
- 7.2Prefix
- 7.3In cout
- 7.4Wrapping up
8.Selection
- 8.1If else
- 8.1.1Nesting
- 8.1.1.1Dangling Else
- 8.1.2Examples and questions
- 8.2Switch
9.Iteration
- 9.1For loop
- 9.2While loop
- 9.3Do-while loop
- 9.4Variations
- 9.4.1Optional parts and infinite loops
- 9.4.2Empty loop