Summary C ++ standard library learning notes

Source: Internet
Author: User

I read an article on the Internet last time, Andrew Koenig wrote a modern C ++ tutorial "Accelerated C ++". However, has the situation of the C ++ community improved over the years, the following is a research study, hoping to bring you the information you want.

So apart from my personal preference for C ++, I want to establish confidence and interest in learning C ++ for you. The first advice I gave to myself to learn C ++ was: Never give up halfway! At first, it was driven by interest, and later it was necessary to make a living, and finally it returned to interest.

After all, it is enough for me to have fun. Before learning a new thing, it is very important to solve the motivation problem. Just like killing people, if it's just a sudden rise, then after trying, there will be no sense of accomplishment. The revolutionary martyrs set a good example for us. Even if we encounter too many confusions and pains on the way to learning C ++, we have made great efforts for our own beliefs, we know what we are doing and what we are pursuing.

C ++ is a large-scale language widely used in industrial software development. High complexity and ability to solve problems. C ++ standard library is not only of great value in development, but also of great value in academia. The articles on C ++ can be described in great ways.

C ++'s world-class classic books are also countless. However, the current development language is so prosperous that Microsoft is launching a new development language C #. One undeniable reality is that in the field of low-level program design, C ++ compresses C and is also suffering a strong rebound from C, some time ago I read that it is said that it is the source code of Microsoft's operating system, many of which are still C language. In the field of high-level programming, Java and C # are constantly encroaching on the territory of C ++.

Maybe Java and C # will eventually force C ++ to return to the development field with fundamental advantages: low-level system program design, advanced large-scale high-performance application design, embedded program design, general program design, and numerical science computing. I think this is not a good thing. The high performance and large-scale numerical computing required by power system software are exactly what C ++ is good. Many software related to power system computing, such as PAS, were developed using C ++.

C ++ is very useful in Power System software development. C ++ attracts so much intellectual investment that there are so many excellent works in this field, including heavyweight software products, libraries and books. On the personal homepage of Bjarne Stroustrup, the father of C ++, one page lists all or most of the Systems, Applications, and libraries written in C ++.

Many new users may be confused about what they learn. I feel that I have spent so much time learning this thing. Will it be outdated? This idea is common. In some forums, we often see the advantages and disadvantages of different languages and know the advantages and disadvantages of the language we have learned. However, it is useless to stay at this level.

All languages are just tools. It is important that you use the tool! In my personal experience, developers in the industry are willing to use mature and well-known technologies to complete their work. New users like to use some relatively new technologies for development, and they like to pursue novelty. It is easy to see from the interface that most of the colorful interfaces come from new users ). In fact, it is not a developer's fault to solve the problem by using some methods that may be inefficient, scalable, and difficult to maintain.

They are just finishing their work. However, as a truly motivated developer, we should use more elegant and efficient programming technologies, which is a good habit for us to gradually become a programmer. It is easy to be eliminated because it is always in the same place. This is especially true in software development. No matter for students or front-line developers, I don't think there should be an exclamation of "reading enough books! Sometimes I like to read the books I have read before, and I can always understand new things.

Write programs first expect that the program can be correctly executed, secondly, the efficiency can be accepted, and again, it is easy to maintain. C ++ is a difficult language to learn and use. C ++ provides many options, and there are four ways to think about using C ++ to write a program: process-based, Object-based, object-oriented, and generic.

We use a language to write programs. It does not mean that we use the language itself. In other words, we use libraries to write programs. Such as MFC, STL, ATL, and VCL. C ++ should be used to write code with beautiful structure, excellent performance, concise code, and easy to maintain. C ++ standard library should be introduced first.

STL imposes strict requirements on efficiency, and the program written by STL is concise and beautiful. Some time ago, I specially posted a post asking to sort several integers, in fact, the purpose is to demonstrate the concise and elegant STL ). Once we get used to generic thinking, we can fully appreciate the beauty of the template!

For numerical computing, the C ++ standard library can fully meet the requirements of modern services and commercial computing for immediate response to data and information.

I think the most important thing to learn a language well is practice. That is, more "writes "! "Accumulation of engineering Experience" is very important for programmers who have been developing for a period of time! Only through continuous accumulation can we gradually understand the things behind the C ++ language.

For this reason, cainiao who do not have much experience in writing program code can also use Objective C ++ to gain some experience. Objective C ++ is a good book !. Meyers's book is definitely worth reading. Meyers can be said to be one of the top technical experts in the C ++ community today.

The text below should have been graffiti last year, mainly about dynamic memory allocation. Here I will re-read it and I think it is still too simple. Because the memory is the "Sports Ground" where the program runs, the degree of understanding of the venue will directly affect the smoothness and stability of our program running.

  1. How to Write C ++ project development and project plan correctly
  2. Summary Notes on learning and exploring C ++ library functions
  3. In-depth demonstration of high security of C ++
  4. Describes in detail how to accurately Write C ++ languages.
  5. In-depth demonstration of high security of C ++

Related Article

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.