Home >Common Problem >how to learn c language

how to learn c language

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-16 10:39:1932611browse

how to learn c language

If you want to do your job well, you must first sharpen your tools

Preparation: a development environment, such as Turbo C 2.0, Visual C and other development tools; a good textbook, such as "C Language Programming" (Second Edition) edited by Tan Haoqiang.

Secret Weapon

Beginners who want to learn computer language must be able to "read programs", be interested in small application and game programs, and imitate them to deepen their understanding. To understand and operate C language programming, only by constantly writing and debugging programs can you gain experience in programming and deepen your understanding of programs. This is also the secret weapon for learning to write excellent advanced programs.

Carry forward the spirit of exploration and learn

C language programming is a bit like doing math problems. As long as we are good at thinking and exploring, we can carry forward the spirit of exploration to find good design ideas and Only by using this method can we truly grasp the essence of C language.

Related recommendations: "FAQ"

How to learn C language well?

1. Learn C language well, and 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 finally 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 related. 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.

(1) Learn the operators and order of operations of C language well

First of all, it is necessary to clarify that operators are classified according to different priorities. "C Programming" operators can be divided into There are 15 priorities, from high to low, the priority is 1 ~ 15. Except for levels 2, 3 and 14, which are combined from right to left, the others are combined from left to right. , which determines the order of operations of operators of the same level.

(2) Learn the four program structures of C language well:

·

Sequential structure

·

Branch structure

·

Loop structure

·

Modular program structure

(3) Master some Simple algorithm

The above is the detailed content of how to learn c language. 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