Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Program processing object

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article shares with you the content of sample analysis of program processing objects. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

The object that the program processes is "data". In the computer world, data represents the abstract concept of the digital model, but also represents the information; and the purpose of programming is to deal with the data, programming is used to process the data.

The object processed and processed by the program-data

What is the programming used for?

Nothing more than processing the data. When we are engaged in scientific research and engineering projects, of course, we first analyze the problems with domain knowledge, then carry out mathematical modeling, and finally deal with them by computer.

In the world of computers, data represents the abstract concept of digital models, as well as information. Combined with our daily life, we can imagine that we are surrounded by all kinds of data-words, numbers, sounds, pictures, animation and more complex multimedia data. The purpose of writing a program is to deal with this data.

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

How to understand the data?

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

From the abstract point of view of mathematics: for numbers: scalar + vector

In scientific research and engineering, it is necessary to deal with vector and scalar.

Scalar: very simple, the most basic numeric type, which is the basis for making up vectors and more complex types.

Vector: now very popular machine learning, data mining, all the time need to deal with feature vectors. There are (arrays, vector of STL) in C++.

From a mathematical abstract point of view: for characters: characters + strings

Character is the most important information carrier in the Internet, because it carries language information.

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

The text is represented and processed in the form of characters and strings in the case of CAccord Category +. Where a string is an array equivalent to characters.

Computer perspective: understanding data

The function of computer programming language is to complete the mapping from abstract mathematical model to computer concrete representation. Therefore, the computer programming language defines several models to realize the representation of numbers.

For example, int num; defines a variable num, which has two meanings:

1. First of all, he can perform integer-related operations corresponding to integers in mathematics.

2. Secondly, due to the limitation of computer hardware, this integer variable can not represent infinite data. On traditional 32 machines, it can only reach (2 ^ 32-1) at most.

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

To understand all kinds of data around us from the perspective of mathematics and computer, the data have different expression and realization ways in the world of mathematics and computer.

Data can be divided into basic data types and non-basic data types in the world of Cpicket +.

1. Basic data types: character type, shaping, floating point type

2. Non-basic data types: built on basic data types, constructed according to the needs of users, in order to represent more complex data.

Thank you for reading! This is the end of the sample analysis of the program processing objects. I hope the above content can be helpful to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report