A simple programming language-C ++

Source: Internet
Author: User

As a simpler language than C, C ++ provides a better mechanism to enhance program security. The C ++ compiler has a strict type security check function, it can almost find out all the Syntax problems in the program, which greatly helps developers.

According to the investigation, there is no naming rule that can be approved by all programmers. Generally, No naming rule is specified in the programming textbooks. Naming rules are not a matter of success or failure for software products. Instead of trying to invent the best naming rules in the world, we should develop a naming rule that satisfies most project members and implement it in the project.

The more features, the higher the level, and the old qualifications. So don't be surprised that many shortcomings of programmers can be appreciated as advantages. It is like in martial arts novels. Those who are dedicated, unrestricted, and somewhat evil are the most admired. I once believed in this and hoped that I would become such a "real" programmer.

I have been diligent and studious since I graduated from college to my PhD. I have compiled hundreds of thousands of lines of C ++/C code. With such hard work and fatigue, should I be a programming veteran? The software I developed is related to the research-related integrated circuit CAD and 3D graphics fields ).

Tens of thousands of programs are easy to use. The technology is complicated and difficult. These software were frequently awarded, and one software won the first prize in the first Chinese College Students' Computer competition. A set of graphic software libraries developed in 1995 will be purchased by another person in 2000. Listing these "performances" indicates that I am a programmer?

Although he has never been involved in the 3D graphics field, he points out multiple major design errors of the software within dozens of minutes. It makes people feel that the set of software is a Paster of gorgeous clothes, pull a piece, and stamp a hole. I was dumbfounded to realize that the software had no practical value. One year of painstaking efforts had been made and killed my own software company.

A person's epiphany usually occurs at the most heartache moment. After being frustrated and heartbroken, I made a profound reflection and reviewed the basic knowledge of software design for half a year. After completing the "internal strength", I felt that the waist was hard. Half a year before my graduation, I went to the Chinese Research Institute of Microsoft to find a job and accept an interview with a senior software engineer from Microsoft. He asked me to write code for the strcpy function.

C ++ is a powerful language that can be used for tasks that other languages cannot do. However, this powerful feature comes at a cost. When you start to use the C ++ language, you may encounter problems such as memory overflow and access failure, causing the program to crash. Here we will give a brief introduction to the basics of the C ++ language.

The C ++ language has its own monograph. This book is still very thick, so don't expect me to be clear in just a few words. After learning this book and using C ++ Builder for a general period of time, the reader finally gives a more in-depth understanding of the C ++ language. C ++ can take full advantage of Object-Oriented Programming (OOP.

OOP is not just a new term, but has its practical significance. It can generate reusable objects. The new term object, like the component described above, is the software block component that completes a specific programming task, but the object is not all component, which will be explained later ).

Objects only show the required parts to the programmers who use the objects. This simplifies the use of objects. All internal mechanisms that users do not need to know are hidden behind the scenes. All of this is included in the concept of object-oriented programming. OOP can be programmed in a modular way to avoid starting from scratch each time. The C ++ Builder program is oriented to OOP, because C ++ Builder uses a large number of components.

After the component is generated, the component you generate or the component built in C ++ Builder can be reused in any C ++ Builder program. The components can also be expanded to generate new components with new functions through inheritance. The best thing is that the component hides all content details, allowing programmers to focus on making full use of the component.

  1. Differences between standard input implementation methods in C and C ++
  2. How does the C ++ compiler allocate storage space for Const constants?
  3. Basic Conception and method of C ++ Class Library Design
  4. Several Methods for converting C ++ Language
  5. How to better compile C ++ code

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.