In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces what are the basic elements of the program, have a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.
A program is a group of instructions that the computer can recognize and execute, which runs on the electronic computer and meets certain needs of people. The program can direct the computer to perform the actions we want it to do. The basic elements of the program are: constants, variables, expressions, statements and functions.
What is the program? The basic elements of the program
A program is a set of operable working steps designed to achieve a specific goal. For a computer, a program is an ordered set of instructions that the system can recognize. The program can direct the computer to do what we want it to do. The program is stored on disk, executed from disk to memory and then to registers, and finally executed by CPU. The execution process of the program is somewhat similar to that of the ancient emperors, which can be compared. In ancient times, the public sentiment outside the palace and the memoir written by the minister was like a program. The outside world was like a hard disk, and the program was stored on the hard disk, and the minister was like memory. The minister summarized the public sentiment and handed it to the eunuch, and the eunuch was the register. The eunuch gave the playbook to the emperor to deal with, while CPU also took the program out of the register and then executed it. A program is a language that communicates with a computer, consisting of specific grammars and keywords, starting from the entry point, and the principle is executed from top to bottom, from left to right, one by one.
The basic elements of computer programs are (constant) (variable) (expression) (statement) and (function), etc.
What are the programming languages?
When the computer was first born, the program was a segment of binary language, called machine language. Because the programming of binary language is really inconvenient and unsuitable for writing and reading, assembly language gradually comes into being. Assembly language replaces some key instructions in machine language with some symbols. Compared with machine language, assembly does have some readability, but assembly is still very complex, and the workload of programming is still very large. So the high-level language arises at the historic moment, and the high-level language is farther and farther away from the machine. On the contrary, the syntax is close to the human natural language. Moreover, the high-level language no longer executes instructions, but statements, and one sentence corresponds to multiple instructions. Therefore, its development efficiency is getting higher and higher. However, high-level languages must be compiled into machine code. High-level language has good portability.
There are several basic concepts about the program. Compiled language refers to the language that needs to be compiled and linked first to generate executable files, such as Java/c/c++ and so on. An interpretive language refers to a language that can be executed directly in a specific program or environment without compilation and linking, such as JavaScript/python and so on. Data is the object processed by computer programs, which can be the coded representation of integers, real numbers, characters, images, sounds, etc. Data structure means that there is one or more specific relationships between data and data, and what is closely related to the data structure is the type of data and the storage of data. Programming is the process of programming. Software is made up of programs and documents.
Thank you for reading this article carefully. I hope the article "what are the basic elements of the program" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.