How to learn C language

zhaozj2021-02-16  88

How to learn C language -------------------------------------------- --------

Many people feel that they feel unsained by learning C language, often asking me the same question: How do I learn C language? I am a teacher, has developed a lot of procedures, like many people who have just started, the first computer language of learning is C language. After these years, I deeply realized how important C language is about a program designer. If you don't understand C language, you want to write the underlying procedure, this is almost ridiculous, don't understand C language, you want to write Excellent and efficient procedures, this is simply the heavens. Why is the C language so important?

The first: C language syntax structure is very simple and exquisite, the program is also very efficient, very easy to describe the algorithm, most of the programmers will use the C language to describe the algorithm itself, so if you want to build a tree in programming It is necessary to learn it. Second: C language allows you to go deep into the system underlayer, you know the operating system, which one is not written in C? All Windows, UNIX, Linux, Mac, OS / 2, no one is outside, if you don't understand C language, how can I go deep into these operating systems? Don't say you to write their kernel programs. Third: Many new languages ​​are derived from C language, C , Java, C #, J #, Perl ... Which is not? Mastered the C language, you can say that you have mastered a lot of doors. After a simple study, you can use these new languages, this once again verifying the C language is an important basis for program design. Also, more to say a little: even now recruiting programmers, the exam is a test C language, you want to join the IT industry, then you must master the C language.

So how do you learn C language?

1: Workers must have a good thing, and must first introduce several to learn C language necessary Dongdong: a development environment, such as Turbo C 2.0, this once occupied the DOS era development program. But now the Windows era, use Turbo C to feel unisects, the editor is very hard, and dragging, there is no function variable automatic induction function, and the query reference is not convenient. It is recommended to use Visual C , although this thing is more big, but once installed, it is very convenient. A learning tutorial, now C language textbooks, such as cattle, but recommending "C language program design" Tan Haoqiang, the second edition Tsinghua University Press, this book is very suitable for beginners, and the content is also very delicate. In addition, there are many software that have many auxiliary learning. After all, it is now a Window era. If you learn more software, you are not like our original study, just read the book. I recommend a "Integrated Learning Environment (C language)", the knowledge point summary and routine inside is very good, and there is a question bank test environment. It is said that there are thousands of questions, and even a TRUBO C under Windows. , Beginners don't even need other compilers, they can practice programming, which is very suitable for beginners. There is also a "C language learning system" software, but it feels just a question bank system. If you think is not enough, you can try it.

2: What is the best way to learn a computer language? Answer: Read the program. That's right, the reader is the fastest way to learn C language, and it is also the best way. Like I, I am now learning new J #, C #, etc. other languages, no longer holding books, but learning their routines. Of course, for beginners who have not learned any computer language, it is best to read the tutorial first. After studying each chapter, we must seriously understand all the concepts of this chapter, then not let go of all this chapter. Cheng, then study the procedure until every line understands, then find a few programming questions, it is best to look similar or the same as routines, try to write this section that has been read, don't think you have a routine you I have already read, you can write the same procedure as it, absolutely not necessarily, don't believe you try it, if you can't write, don't worry, go back to continue research routine, think about yourself Why can't you write it out, then write this program, repeatedly, until you come to you, congratulate you, you will get started. 3: The highest realm of Dengfeng Activity Writing Procedure is actually a method (data structure) and solving problems that work various resolution issues (data structures). Is it written out the underlying program is the programming expert? Non-also, write underlying procedures, not to master hardware structure, and hardware and hardware are still different, to give a chip write driver, nothing more than the various registers of this chip and its combination, then write value reading value This more only. This is just familiar with some IO functions. So how do you think of masteric programming? How can I master the programming? For example: 10 people in front of you, find a person called "Zhang San", what should you do? The first method: directly to this 10 people: "Who called Zhang San". The second method: You ask "Are you Zhang San?", Until this person is Zhang San. Third way: You go to ask a person "You don't know Zhang San, refer to me". Don't underestimate this problem, you say of course, you will choose the first method, please congratulate you to answer, because this method is the fastest, the highest efficiency, but finds the best way to solve the problem in programming, but the means you use It is an important logo that tests a programmer program design level, and it is not easy to achieve. This problem just is similar to the data structure and algorithm: MAP data structure, exhaustive lookup, and folding. Therefore, master the data structure and some common algorithms are the inevitable path of Dengfeng. Finally, I recommend Yan Yimin's "Data Structure" Tsinghua University Press. I hope that every person who wants to become a program design master.

转载请注明原文地址:https://www.9cbs.com/read-14860.html

New Post(0)