Chapter 1: Getting Started
Getting Started
types, variables, expressions, statements, and functions. compile and execute.
The way to learn a new programming language is to write programs.
- Define variables
- Do input and output
- Use a data structure to hold the data
- Test whether two records have the same ISBN
- Contain a loop that will process every record in the transaction file
C++ Program
- return type
- function name
- parameter list
- function body
Compiling and Executing
1 | GNU |
A First Look at Input/Output
iostream (istream + ostream)
cin, cout, cerr, clog
Flow of Control
1 | while ( condition ) |
Class
who, where, what
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 ZuowangDev's Blog!