How to collect C language knowledge points
This article mainly explains "how to collect C language knowledge points". Friends who are interested might as well take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to collect C language knowledge points.
Preface
A good memory is not as good as a bad pen. We should also take more notes and sort out what we have learned so that we can review it later when necessary.
In the past, when I first started learning C, I often needed to verify some vague knowledge points, or when I wanted to verify some functions, so I would build a test.c file every time, and then write my test code in this file. After testing, I would often delete the file.
The next time you encounter the same problem, you may not remember clearly, and you often need to test it again, which is a waste of time.
So, to solve this problem, I wrote a simple program specifically for testing:
(1) there is a menu, through which you can select the function you want to test.
(2) there are functional functions that encapsulate some functions that need to be tested into a function.
(3) there are test functions for testing function functions and some knowledge points.
The test procedure is roughly as follows:
We only need to enter the number in front of the menu to carry out the corresponding test. Very convenient, over time, gradually, you can accumulate a lot of knowledge points. Such as:
Program template
1. Menu functions are as follows:
2. The main function is as follows:
3. Test function
Whenever you encounter some uncertain knowledge points, you can add a related description to the menu function to print information, and then the relevant knowledge points or some C language topics can be encapsulated into a function Testx, and some knowledge points may need to establish other function functions for Testx function calls. Finally, Testx is called by the main function.
At this point, I believe you have a deeper understanding of "how to collect C language knowledge points". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!