Tracing simple programs in C++
http://www.puiching.edu.hk/~wtchung/trace/CPP/index.htm
In this section, we will discuss the basic features of C++. Since both C++ and Pascal are procedural languages (i.e. programs written in these language specify how to do a task), Pascal will be used frequently in this section to describe some basic features of C++.Although it is more appropriate to describe C++ as an object-oriented language, the object-oriented features will not be discussed here.
- A simple C++ program
- Data types, variables and variable assignment
- Constants and aliases
- Operators (Part 1)
- Operators (Part 2)
- Operators (Part 3)
- Precedence of operators
- Selection structures: if and if-else statements
- Selection structures: switch statement
- Repetition structures: while statement
- Repetition structures: do-while and for statement
- Unconditional branch
- One-dimensional arrays
- Character arrays
- Multi-dimensional arrays
- Records
- Functions
No comments:
Post a Comment