C ++ language analysis from C Language

Source: Internet
Author: User

Maybe you are not very familiar with the C ++ language. After reading this article, it will be of great help to you, in addition to studying the basic nature of the C ++ language, we will also conduct a comprehensive study on the new features of the C ++ language. Now, let's start studying.

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 ++ is of great value not only in development, but also in academia. The articles on C ++ can be described in great ways.

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.

This is especially true for books on the C ++ language, and I don't think I have a good question. Why? I think that language learning is only the first step for beginners to step into the "hell" of software development. It is far from enough to learn the language, to learn the relevant library C ++, of course, the first choice is to first learn C ++ standard library), related platform technology such. . Prior to work, the technical route was self-determined. After work, the vast majority of programmers will be influenced by the company's technical route.

Therefore, you can learn something you are interested in while you still have time. If we want to develop software, especially power system software, learning C ++ well will not disappoint us. When we enter the front door of C ++, and go through a dark road, and then come out of the back door to reach the Bright Summit, we will feel the feeling of "A small view of the mountains.

Recommended books: You should know the first book written by Liang zhaoxin, a programming guru, ^ _ ^. There are several chapters worth reading. In this book, Liang told us that we should be patient in learning things, be able to endure "loneliness", take our own path, and let others "say!

Recently, I was very busy. I originally planned to closely talk about the details of some specific C ++ languages, but I still couldn't find a long time. So now I can only share some stories about C ++.

C ++ originated from the C language. I still remember that it was a happy and full time to study C language a long time ago, the class is not added on the basis of C. If we think so, we are not good at C ++. Therefore, C ++ is never an upgrade or expansion of C. We should use C ++ as a new language to learn Bjarne Stroustrup, the father of C ++ ).

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.