Some Ideas about learning C language programming.

Source: Internet
Author: User
Some Ideas about learning C language programming. -- Linux general technology-Linux programming and kernel information. The following is a detailed description. I wrote a few superficial posts that initially entered the C language programming world. I wanted to spend two months in Linux, I learned some ideas and ideas about C language programming, but after thinking about some questions last night and this morning, I think that if I want to write such a post, for those who want to learn C language, first, the content seems too monotonous and cannot solve any problem. If you just post a few posts, you can help people enter the C language world. It's a bit silly and a bit ridiculous. Second, there are too many materials on the Internet to learn the C language. From the perspective of books or video materials, it is simply described as more than Niu Mao. The idea I wrote these posts is not just about my own interests and encouragement, because I learned the C language, I would like to note the following points:
First, for the C language itself, there is no essential difference between programming in Windows and programming in Linux. From the perspective of similarities and differences, it is almost the same. The only difference may be that in Windows IDE or Windows, there is VC ++. In Windows, you only need to consider learning C language. In Linux, GCC or G ++ is basically used on the terminal. In my own sense, I feel that the flexibility of GCC in Linux is better --> This is just after learning about the usage of GCC! In the Linux world, you have to spend more time on the GCC compiler! If you have learned C language in the Windows world, you only need to solve two problems in the Linux operating system, it is easy to use C language for development and programming in Linux. The first problem to be solved is to understand the structure of the Linux operating system and its running mode. The second problem to be solved is the use of the GCC compiler.
Second, from my own understanding of programming, No matter what language is used for programming, it feels like a child playing with blocks. What should I do ?! I would like to compare the operating system to an engine. For Windows and Linux, the output power is the same, but the external interface is different from the engine-maybe the internal structure is also different. So what can we use this engine for power generation, assembly into a car, and assembly into any machine that requires a power. Programming is based on different external interfaces of the engine. Based on your imagination, this engine is assembled into what you want and what you need. What about various programming languages, it's just a bunch of other things that are made up of blocks. It may also be a box with a variety of kits.
Third, this seems to be similar to the second point, or even the second point. I feel like I want to write it out separately. I feel that no matter what language is used to write a program, it is easy to learn the programming language after several problems are solved ---> (in fact, such an operation is not feasible in reality, in reality, only learning and learning, and programming can improve people's interest in learning and make people feel fulfilled to learn, because few people can learn the theory and then perform the actual operation ). So what problems should we solve? First, the memory running mode in your operating system is actually the basis for learning programming, because only after you solve the program running environment can you make the programs you write better run in the operating system. To put it bluntly, it is to make the program you write have good communication skills, so that the world outside the program can better understand your program and tolerate your program, make every running of your program Happy and smooth. Second, understand every external interface of your operating system. For example, if you want to write a search program, you must first know the file structure of the operating system you use and the running mode of these files. There is a function in the system that notifies the running program that you can perform system file operations only through me. Then this function is the interface you need. In the program you write, you only need to use this interface for operations. This is what you want to write programs.
Well, I have some rough ideas on programming, and the level is limited. Please criticize and correct the mistakes. Thank you.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.