Programming Fundamentals

Programming language

Computer Languages

  1. Machine language - the 0 and 1 binary code
  2. Assembly language - readability, the symbolic machine language
  3. High-level language - similar to human language

Compiled languages: execution after reading all the code.

Interpreted language [JS]: read a line of code, one line of code. And so on, until all the code is completed.

Software development process:

  1. Software Initiative
  2. Requirements analysis and definition
  3. Software design (data structures and algorithms)
  4. Software Implementation
  5. test
  6. Operations and maintenance

Errors in development:

  1. Syntax error error without writing code in accordance with the format of writing caused -
  2. Logic error - should have some missing steps, or steps of order
  3. Runtime Error - after the reported fault code execution

Programming

program:

1. Data Structure: storage of data, such as variables and arrays.

2. algorithm: solve a problem of procedures and methods, not the narrow sense of mathematical algorithms.

algorithm

Algorithm features:

  1. Finite nature: an algorithm is a limited step, but not unlimited.
  2. Uncertainty: Each step is to determine, not vague.
  3. 0 to a plurality of input
  4. 1 to have a plurality of output
  5. Effectiveness (not to appear formula is: n / 0)

Fake code:

After the analysis of algorithms written in Chinese demand process for resolving complex issues.

flow chart:

  1. Elliptical - the start and end frame

  2. Rectangular - processing block (execution box)

  3. Parallelogram - input-output block

  4. Diamond - determination block

  5. Arrows - flow line

Guess you like

Origin www.cnblogs.com/Lotus3904/p/12318001.html