Home  >  Article  >  how to learn c language

how to learn c language

angryTom
angryTomOriginal
2019-08-13 10:49:1115253browse

how to learn c language

First of all, I am also a rookie and I am still learning. When I started to learn C language by myself, I went through many detours. If you read this article, I hope that You don’t want to take the detour I took. This is also the purpose of writing this article. I don’t want to be like an old man and talk about what to do and what not to do, as if I am awesome. I just retell it to you based on my own views on what I think are pitfalls and detours. I hope you will have your own understanding.

Recommended tutorial: C language learning video tutorial

## 1. I keep changing tutorials, and I always feel that I The tutorial I was studying didn't explain it to me, so I thought it wasn't good. Later, when I got deeper into it, I realized that the tutorials were basically the same. It wasn't that the tutorials weren't good, but that I should have spent my own time. To think about things, I think it should be taught by the teacher, so even if the tutorial is the best, I don’t think it is very good. There are also books. I bought several introductory books, but in the end I only really read one, the one by Tan Haoqiang. Although the review of this book is not very high, it was indeed this book that got me started. Of course, particularly bad tutorials are not excluded. My original introductory tutorial was from Little Turtle, called "Take You to Learn C and Fly You", and the book was the fourth edition of "C Language Programming" by Tan Haoqiang. I should have finished one book and a set of tutorials at the beginning. It was a waste of time to change so many books and tutorials. Now that I think about it, I regret it

 2. Download various tutorials. When I see a tutorial with the name Niu Duncoo, I save it to Baidu cloud disk and then download it to my computer. Like a typical tutorial collector, my computer hard drive is almost full! I have about 800G of video tutorials on my computer. Watching these tutorials every day is like looking at a big box full of gold ingots. I feel so rich. Things like penetration testing, WEB security, and reverse cracking make my blood boil. If you are still interested in learning C language, you can’t wait to go directly to penetration testing. Of course, this is impossible. Thousands of tall buildings are rising from the ground, and you haven’t learned the C language, so why talk about this? These computer tutorials make me more and more impetuous! One day, I had an idea that came from nowhere and deleted all the "advanced tutorials" that I had not learned at this stage in my computer. Suddenly, I felt that the world was clean! I concentrated on learning the basics. During the next period of time, I concentrated a lot. These tutorials gave me great motivation to learn computers. They also spent a lot of energy on random thoughts. As tall buildings rise from the ground, concentration is very important!

 3. Don’t do it, just look with your eyes. When I first started learning, I felt that I could understand everything the tutorial said, so why did I have to type the code again? Then when I was doing my homework, I made all kinds of mistakes, all kinds of mistakes! ! ! The input method is wrong, the keyword is wrong, and there is a missing bracket! collapse! Then I didn't dare to neglect it anymore. If I should type the code myself, I would type it myself again. There will still be mistakes, all kinds of mistakes, it’s really annoying! After about two weeks, I obviously felt that I made fewer mistakes and my thinking became clearer! At the end of the study, there was an assignment to make a simple address book program. It was more than a hundred lines of code. After I typed it, it compiled and ran smoothly! There is no mistake. If I had been lazy and did not take action, it would be impossible to achieve it. Now think about it, programming is also a process of constant trial and error. When I first started learning, I kept correcting my own mistakes because the initial programs were all simple. Later, when the program became more and more complex, I just looked for errors in the program. If my own errors were not solved, how could I talk about solving program errors later?

 4. At the beginning, I heard the teacher say that the main thing to learn in programming is the ideas. After listening to it, I felt quite relaxed. I thought that learning ideas is just listening to the lectures, without homework? So I don’t take my homework seriously. After a few days, I continued to listen to the teacher in class, but I couldn’t understand it at all. Later, I communicated with a senior student, and he said that homework after class is very important. It is a consolidation process. Use your own knowledge so that you can understand it better. This is also a feedback process. Feedback is very important. Through homework, writing line by line of code until it runs smoothly is a very fulfilling thing, and it can motivate yourself to learn! What the senior said made sense, and I listened to it and followed what he said. My own practice has proved that writing after-class questions is indeed a good method of consolidation and feedback!

I wasted so much time because I was not focused, had high ambitions but had low abilities, and was lazy. Now that I think about it, it is actually quite valuable. After all, it is an unforgettable experience, but I still hope that friends who read this article, Don't go through the same pit I went through.

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