Home  >  Article  >  What is the object processed by the program?

What is the object processed by the program?

青灯夜游
青灯夜游Original
2020-12-15 16:39:019794browse

The object processed by the program is "data". In the computer world, data represents an abstract concept of a digital model and also represents information; the purpose of writing programs is to process these data, and programming is used to process data.

What is the object processed by the program?

Related recommendations: "Programming Video"

The object of program processing and processing-data

What is programming used for?

It’s nothing more than processing data. When we engage in scientific research and engineering projects, of course, we first analyze the problem based on domain knowledge, then perform mathematical modeling, and finally process it through computers.

In the computer world, data represents the abstract concept of digital models and also represents information. Combined with our daily life, we can imagine that we are surrounded by all kinds of data - text, numbers, sounds, pictures, animations and more complex multimedia data. The purpose of writing a program is to process this data.

Although there are many types of data, in the final analysis, the two most basic data types are numbers and characters.


How to understand data?

There are many types of data, but in the final analysis, the two most basic data types are numbers With the characters

from a mathematical abstract point of view: for numbers: scalar vector

In scientific research and engineering, we must deal with vectors and scalars. type.

  • Scalar: is very simple and is the most basic numeric type. It is the basis for vectors and more complex types.

  • Vector: Machine learning and data mining, which are very popular now, do not need to deal with feature vectors all the time. In C there are (arrays, STL vectors).

From a mathematical abstract point of view: For characters: character string

Characters are the most important in the Internet An information carrier because it carries language information.

In scientific research and engineering projects, it is also often called text. It is written language, reading, reading newspapers, and writing articles, all using articles as carriers. It is the most common and important information carrier in the Internet era.

In C/C, text is represented and processed in the form of characters and strings. A string is equivalent to an array of characters.


Computer perspective: understanding data

The role of computer programming language is to complete the mapping from abstract mathematical models to specific computer representations . Therefore, computer programming languages ​​define several models to represent numbers.

For example, int num; a variable num is defined here, which has two meanings:

1. First of all, it corresponds to an integer in mathematics. Perform integer-related operations;

2. Secondly, due to computer hardware limitations, this integer variable cannot represent infinite data. On a traditional 32-bit machine, it can only reach (at most) 2^32 - 1);

This is the completion of the mapping from the "abstract mathematical world" to the "computer real world".


Understand the various data that appear around us from the perspectives of mathematics and computers respectively. Data have different expressions and implementations in the worlds of mathematics and computers. Way.

In the C/C world, data can be divided into basic data types and non-basic data types

1. Basic data types: Character type, integer type, floating point type;

2. Non-basic data types: built on basic data types, constructed according to user needs, in order to represent more Complex data.

If you want to read more related articles, please visit PHP Chinese website! !

The above is the detailed content of What is the object processed by the program?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn