Joke Collection Website - Mood Talk - Looking for programming methods

Looking for programming methods

1. If you learn C language well, you can handle any programming tool well.

2. You must practice more on the computer and learn relevant knowledge through the program. It took several repetitions to achieve the right result.

3. Don’t regard learning C language as a task, let alone a task that is difficult to complete. Be confident, anyone with normal intelligence can learn C language well. Always maintain a game mentality and discover more fun. When you feel that programming is endlessly fun, you will have a bright future in computers.

4. If a program cannot be understood for a while and is put aside for the time being, you may realize the truth from other programs after a while.

5. C language is a whole, and all aspects are organically connected. It is necessary to grasp it as a whole and do not split it into unrelated parts.

6. Do not completely believe in the textbooks (including this handout). It is best to verify all conclusions on the computer.

To put it simply, programming is the process of using a certain programming language to write program code in order to achieve a certain purpose or solve a certain problem with the help of a computer, and finally obtain the result.

Although computers are very powerful. It can allow you to surf the Internet, play games, manage company personnel relations, etc., but without programs, it is equivalent to a pile of scrap metal and will not pay attention to the "orders" we give it. Therefore, we have to tame it through only one way - program. This is also the only way for us to communicate with the computer.

What exactly is the program?

A program is a collection of instructions that tells the computer how to perform a specific task.

For example, it is like a recipe that guides you to cook a dish or a traffic policeman (or traffic sign) who directs you to drive all the way to your destination. Without these special instructions, the intended task cannot be performed. The same goes for computers. When you want the computer to do something for you, the computer itself cannot actively work for us, so we must give it instructions, and it simply cannot and cannot understand human natural language about things. description, so we must use programs to tell the computer what to do and how to do it? Instructions are needed for even the simplest tasks, such as how to obtain a keystroke, how to place a letter on the screen, how to save a file to disk, and so on.

It’s so troublesome, even programming these things has to be considered! No wonder people say programming is difficult! You are wrong. In fact, many of these instructions are ready-made and included in the processing chip and built into the operating system, so we don’t have to worry about them working. They are all completed by the processor and operating system and do not require us to Intervene in these processes.

The computer mentioned above does not actively do anything by itself. Therefore, we have to use programs to make the computer "serve" for us. And this process is what we "made up". Programming can be implemented using a certain programming language, and the syntax of this language is used to describe what the computer is supposed to do.

The grammar we are talking about here is completely different from the grammar in foreign languages. The grammar we are talking about here is just to read your program writing and make some rules.

After you write the program, special software will interpret or translate your program into a "computer language" that the computer can recognize. Then the computer can "understand" your words and follow your instructions. Did your bidding. Therefore, programming is actually a process of "people giving rules to computers".

There are many types of computer languages. Generally speaking, they can be divided into three categories: machine language, assembly language, and high-level language.

Every action or step performed by the computer is executed according to a program that has been programmed in computer language. A program is a collection of instructions for the computer to execute, and all programs are controlled by the computer. language written in. Therefore, if people want to control the computer, they must issue commands to the computer through computer language.

The only language that computers can recognize is machine language, which is a code composed of. But usually when people program, they don't use machine language because it is very difficult to remember and recognize.

There are currently two common forms of programming languages: assembly language and high-level language.

The essence of assembly language is the same as machine language. They both operate directly on the hardware. However, the instructions use English abbreviated identifiers, which are easier to identify and remember. It also requires programmers to write out each specific operation in the form of commands.

Each instruction in the assembly program can only correspond to a very subtle action in the actual operation process, such as movement and increment. Therefore, assembly source programs are generally lengthy, complex, error-prone, and use assembly language. Programming requires more computer expertise, but the advantages of assembly language are also obvious. The operations that can be done with assembly language are not possible with ordinary high-level languages. Moreover, the executable file generated by assembly of the source program is not only relatively small, And it executes quickly.

High-level languages ??are currently the choice of most programmers. Compared with assembly language, it not only synthesizes many related machine instructions into a single instruction but also removes details related to specific operations but irrelevant to completing the work, such as the use of stacks, registers, etc., thus greatly simplifying the instructions in the program. Since many details are omitted, programmers do not need to have much professional knowledge.