Explanation of C ++ syntax structure

Source: Internet
Author: User
Tags map data structure

C ++ languages rely more on third-party libraries to implement these functions, because C ++ is an international standard, it takes a long time to add application-oriented features other than these languages to C ++. Next, let's study them ..

I deeply understand how important the C ++ language is to a program designer. If you do not understand the C language, it may sound silly to write the underlying program, you want to write excellent and efficient programs. Why is C ++ so important?

First, the syntax structure of the C ++ language is concise and exquisite, and the written program is very efficient and easy to describe the algorithm. Most programmers are willing to use the C language to describe the algorithm itself, if you want to make some achievements in programming, you must learn it.

Second, the C ++ language allows you to go deep into the underlying system. Which of the operating systems you know is not written in C language? All windows, Unix, Linux, Mac, OS/2 are inside and outside. If you do not understand C language, how can you go deep into these operating systems? Let alone write their kernel programs.

Third: many new languages are derived from C ++, C ++, J ava, C #, J #, perl... which one is not? After mastering the C ++ language, you can say that you have mastered many languages. After simple learning, you can use these new languages for development, this once again demonstrates that the C ++ language is an important foundation for programming. Another point: Even if you are recruiting programmers and taking the test in C ++, you must master the C language if you want to join the it industry.

1: To do good things, you must first sharpen the tool.

Here we will introduce several essential things for learning the C ++ language: A development environment, such as turbo C 2.0, which once accounted for more than half of the development programs in the DOS era. However, in the windows era, it is difficult to use turbo C. It is difficult to edit the program and drag and drop the program. In addition, the function variable auto-sensing function is not available, and it is not convenient to query reference materials. We recommend that you use Visual C ++. Although this is a big part, once it is installed, it is very convenient to use.

A learning tutorial, now C ++ language teaching materials such as Ox hair, but we recommend that you use "C language programming" Tan haoqiang editor of the second edition of Tsinghua University Press, this book is very suitable for beginners, and the content is excellent. In addition, there are a lot of learning-Assisted Software. After all, it is now in the Window era, and learning software is like a bull's hair.

It's not as old as reading books. I would like to recommend an integrated learning environment (C Language), which provides excellent knowledge points and routine explanations, as well as a test environment for question libraries. It is said that there are thousands of questions, there is even a windows trubo C. Beginners can practice programming without having to install other compilers. It is very suitable for beginners. There is also a "C Language Learning System" software, but it is just a question bank system. If you think the question is not enough, you can try it.

2: sunflower collection

What is the best way to learn computer languages? Answer: Read the program. That's right. Reading a program is the fastest and best way to get started with the C ++ language. Like me, now I want to learn other languages such as J # And C #, instead of reading books one by one, but learning their routines. Of course, for beginners who have never learned any computer language, it is best to read the tutorial first. After learning each chapter, you must carefully understand all the concepts of this chapter, then let alone all the routines mentioned in this chapter, and then carefully study the program until each line understands, and then find a few programming questions, preferably similar or the same as the routine.

  • Learn and guide Visual C ++ development tools
  • Introduction to function overloading in C ++
  • Reference functions and variables in C ++ in C
  • Advanced technical scholars compile C ++ code
  • Detailed description of C ++ compilation and code Problems

If you try to write a program that you already understand, you can write a program that is the same as it. It is definitely not necessarily true. If you don't believe it, just give it a try, if you can't write it out, don't worry. Go back and study the routine again, think about why you can't write it out, and then write the program again and again until you get it done. Congratulations, you are getting started.

3: reaching the peak

The highest level of writing a program is to master various methods (data structures) for solving problems and methods (algorithms ). Is writing the underlying program a good programmer? Also, writing underlying programs is nothing more than mastering the hardware structure. Besides, the hardware and hardware are different. To write a driver for a chip, it is nothing more than mastering the various registers and combinations of the chip, then write the value to read the value. That's all. This is just getting familiar with some io functions.

So how can we be proficient in programming? How can we be proficient in programming? For example, if you have 10 people in front of you and find someone named "Zhang San", what should you do? Method 1: Ask the 10 people directly: "Who is Zhang San ". 2nd Methods: You asked one by one, "Are you James ?", This person is James. Method 3: Ask a person one by one, "you don't know John, tell me ". Don't underestimate this question. Of course you will choose the first method. Congratulations, you are correct, because this method is the fastest and most efficient.

However, finding the best way to solve the problem in programming and the means you use are an important sign of testing a programmer's programming level, and it is not easy to achieve. This problem is similar to the Map data structure in data structures and algorithms. Therefore, mastering the data structure and some common algorithms is an inevitable path to success. At last, we recommend Yan Wenmin's "Data Structure" Tsinghua University Press. I hope everyone who wants to become a programmer can study this book.

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.