Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to learn C++ language better

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly explains "how to learn C++ language better". The content of the explanation in this article is simple and clear, and it is easy to learn and understand. Now please follow the editor's train of thought slowly and deeply. Let's study and learn how to learn C++ language better.

Tip 1: read C++ books discriminately (including those widely known as "classics").

If there is a piece of content introduced in the book that you don't think will be used in daily programming (in 20% scenarios), then maybe the way to do this is to take a very general look at it and make an impression, rather than digging down this line. It will be mentioned later about which books you should read when you are a beginner.

In fact, in addition to language-independent programming (mentioned later in what books you need to read), for learning the particular language of C++, to start programming with it, you just need to know some basic but important language knowledge (which books you need to read later) and the fact that "there are many flaws and traps in C++" and--

Suggestion 2: get into the habit of consulting materials and documents at any time.

"searching documentation" is almost the most important ability (yes, ability) as a programmer; it is so important that there is a special abbreviation-RTFM in English. The reason why this ability is so important is simple: the knowledge in the field of programming is too broken.

Not only is there a huge amount of knowledge, but the details of the knowledge can be found in almost any discipline (find any framework class library and take a look at its API documentation). So, putting such a huge amount of information in your head in advance is not only impractical, but also self-inflicted. What you need is meta-ability, that is, the ability to look up documents-- start with the problem at hand, make a correct and reasonable analysis, predict where the solution to the problem might be, find information about the latter, read and understand, and use it.

Similarly, the same is true in C++, if you hold this attitude from the beginning of learning C++, even if you are asked about a language detail during the interview, you can also say with certainty that although you don't know the detail, when you encounter a problem in the actual coding, you will certainly find the appropriate reference material and solve the problem quickly (solving the problem is the ultimate goal).

Of course, it is more likely that you have been exposed to the most common 80% traps and techniques in ordinary coding, because you are using a practical and instructive way of learning. so the traps and skills you encounter are almost certainly in common situations, which is N times more efficient than catching a C++ "classic" like a headless fly, because in the absence of practical experience. You might think that every trick, every trap, has the same probability.

Thank you for your reading. the above is the content of "how to learn C++ language better". After the study of this article, I believe you have a deeper understanding of how to better learn C++ language. the specific use of the situation also needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report