Software development overview
Software: process data with a program
Processing data using a series of computer languages
Computer Language Development: machine language --> assembly language --> advanced language
Software Development Process:
1. analyze the problem (read question)
2. modeling (drawing flowcharts and defining algorithms: sequence, branches, and loops) algorithm features: 1. certainty 2. validity 3. poor 4. no input is allowed. at least one output
3. Compile programs (syntax and tools)
4. Test the program (Exceptions: runtime exceptions and non-runtime exceptions: syntax and logic)
Advanced Language ----> machine language: 1. Compile (intermediate files are generated)
2. Explanation (no intermediate file, read row by row)
Programming Language Overview
Advanced Language (c ):
1. Character Set
2. identifier (custom + keyword)
3. Statements
4. function library
Custom identifier:
1. It cannot be the same as the keyword
2. It cannot start with a number and may consist of digits, letters, and _
3. Learn what you mean
4. lowercase letters
Machine execution process:
Compile the source file --> compile the target file --> link header file --> execute the executable file
Data Storage
Role of data types:
1. Determine the data storage space
2. Determine the data storage format
Data Type classification:
1. Integer short (2) int (4) Long (8) bytes are stored in binary format. The highest bit is the symbol bit, the zero bit is positive, and the one bit is negative.
2. Float (4) double (8) is classified into decimal places and indexes in normalized data form, storing decimal places and indexes.
3. Character-type char (1) Stores integers Based on the acsilime code
Data value:
1. Constants
2. Variables
Constant: 1. Literal constant
2. Symbolic constants (easy to modify, bringing business meanings to constant values)
Variable:
1. Data Type
2. variable name
3. Data Value % placeholder & address character
Operators, expressions, and statements
Expression: it has a unique result and at least one operator.
OPERATOR:
1. Arithmetic Operator +-*/%
2. Value assignment operator =
3. Increment and Decrement Operators ++ --
4. Relational operators ><==
5. logical operators & |!
6. Conditional operators? : If Switch
7. Special Operator sizeof
Programming basics C (notes)