Everyone knows that C language is an important language in the whole embedded development learning, so learning C language is also an important part of embedded development learning. How to learn C language? What is the secret of C language learning? Today, this is the answer to everyone. The secret of learning C language is "one word, two attitudes, three frameworks, four notes".
One, one word mantra
Learn C language, a word of truth, that is "editing."
(1) Edited.
Learning C language, and even learning all the language, pay attention to a hands-on - not to hit people, but to start programming. You must be familiar with knowledge and understanding by writing programs. If you only learn not to edit, just look at other people's programs, you can't write by yourself, you can't get from getting started to being proficient. You know, in the computer world, people who only say that they are not practicing are very embarrassed. Imagine, where you worked hard to compile the program, but he stood on the side, like the boss, chattering, giving you this opinion, that idea, even talking about how the programming will be, it seems very cowhide, But just don't make a line of code. It is estimated that everyone who encounters such a person will only have one action, that is, click "step on".
Can you learn C language with a "edit"? Is it really that simple? No, just "editing" is not enough, you still need "I am editing."
(2) I edited.
Please pay attention to the rhetoric, "I" edited! This "I" is actually just "you", that is, people who learn C language.
When you are learning C, you should write more programs. For example, when you are learning a linked list, you should write your own linked list program or even write a game program such as Tetris to practice. However, there is a precondition that you must write all these programs yourself to have an effect. If you download some source code from the network, or copy the classmate's program, if you say it yourself, then I only have it. I can tell you in a big way that this has nothing to do with the habit of stealing.
Some students will ask, then "personal" programming can always be proficient in C language, in fact, a little bit, just "editing" is not enough, but "I edit" is not enough to master, in order to reach the highest peak of C language You still need "I edit and edit".
(3) I edited and compiled.
The word "edit" is repeated three times. The "three" here means more, which means you have to write a lot of programs. Writing 10 lines of code in person is equivalent to not editing. It is not enough to write 1000 lines of code in person. Writing 10,000 lines of code in person is also a slap in the face, and you can write 100,000 lines of code in person. You are definitely a combatant among programmers.
At first glance, with 100,000 lines of code, it is estimated that some students will lie down straight and then stand up again - they think of bad ideas. "Isn't it 100,000 lines? It's easy! Now the programming tools have code generation functions. Just drag and drop a few times in the VC and make an MFC window program. The system will automatically generate hundreds of lines of code. A three-way control, thousands of lines of code are generated!"
Once again, the "editing" is prefixed, that is, "I", that is, the learner himself, is the code generated by the automatic code generation tool written by the "learner"?
If there is a policy, there are countermeasures. "Without the code generator, then copy it, just follow the input code!" Hey, people can't be shameless to that point! The 100,000 lines of code should be completed by "you", personally sprouting and rooting in your mind, and then enter it line by line. This is not a performance task, nor is it an image project. Deceiving others can only be self-deception.
Second, two attitudes
The average person mentions the C language, and often a word goes hand in hand, that is "difficult"! Fear, C language is really horrible, the legendary pointer is really too sharp, and the system is cut off without any attention, it is too normal to make a few crashes to restart.
In fact, there is no need to worry so much. The Taizu ancestors once said: "Develop the enemy strategically and attach importance to the enemy in tactics."
(1) Strategically despising C language
In fact, the C language is just an ordinary language. Don't imagine it too hard! Compared with Java, the C language is only a bit complicated, the code is verbose, the library function is less, the three-party control is hard to learn, the compilation tool is a bit simple, the pointer is a little troublesome, and the others are not much different. The programming idea is always The same, program builds are always the same, the program syntax is always similar, and the program logic is always the same.
There is no need to talk about the C language, and treat him as an ordinary language. You should know that even if C language is difficult, it is easier to master than assembly language, easier to remember than machine language, and easier to master than English. So be confident! Everything in C is a paper tiger.
(2) tactically attaching importance to C language
Although we have maintained a passionate spirit in front of the C language, we are not afraid. But in the process of learning, it is still necessary to maintain a modest and cautious attitude, to guard against arrogance and arrogance, not to be complacent because of one or two Tetris game programs, thinking that Laozi is the best in the world, even only 10 lines of code. Just go to the CSDN blog everywhere, and "step on" people's posts everywhere. You know, "Xiongguan Man Road is really like iron, but now you are moving from scratch." No matter how much you learn, as long as you have not yet taken up a job, the Long March is only the first step, and there is still a long way to wait. you.
Ei 57 Tranfsormer,Ei-28 Transformer,Ei57 Power Transformer,57V Tranfsormer
Guang Er Zhong(Zhaoqing)Electronics Co., Ltd , https://www.poweradapter.com.cn