Beginner's note: differences between C, C ++ and VC ++

Source: Internet
Author: User

Which of the following isC,C ++, VC ++The difference between the three. For your reference.

C language is an ancient and enduring computer programming language. It was born in the 1960s S. Because of its many advantages, it has been favored by the majority of program designers for many years and has gradually eliminated many other programming languages. Most of the software we usually use is developed in C language.

Many of the later languages used many of their things. The C language programming method is a development method called the surface process. That is to say, when solving the problem, the programmer needs to think about how the computer should complete the problem step by step, and then convert the corresponding process into code.

When software becomes more and more complex and code gets longer and longer, a person's mental power is limited, and it is difficult to develop with a process-oriented method. He often writes the following information and forgets what he wrote. In addition, complex software often requires collaborative development by many people, making development more difficult. An Object-Oriented Software Development Method came into being. It is hard to say a few words about Object-oriented thinking.

When we talk about computer textbooks in China, we often do not know what object orientation is. This word may only mean that it cannot be said. You need to develop some software to understand. Let's leave it alone. C language is not object-oriented, and programmers cannot do without it. Therefore, some people have added the Object-Oriented function on the basis of C language, that is, C ++. at the same time, C ++ modified some inconvenient rules in C language, making it easier to use C language.

Note the following two points:

1. tan haoqiang's famous <> later I briefly introduced C ++ in several sections. However, the C ++ he mentioned is just a provision that is inconvenient to modify the C language mentioned above, there is no object-oriented content.

2. C ++ developed on the basis of C language, but it is not C ++ more advanced than C language. The two programming ideas are different and their application fields are different. In their respective fields, no one can replace anyone. In addition, the appearance of the windows operating system, the development of graphical interfaces on the windows platform has become a major challenge. Although it can be developed in C language, programmers have to spend a lot of energy on graphic interfaces.

At the same time, the windows platform graphic interface program has many similarities. In order to free programmers, let them focus on program functions rather than graphic interfaces, microsoft company launched the visual software development environment, including Visual C ++ provided for C ++ programmers. programmers can use the C ++ language to develop graphical interface software. With Visual C ++, Microsoft provides many library functions for displaying Windows interfaces. Visual C ++ is the C ++ and windows GUI.

If you want to learn C ++ and C, you just need to learn Visual C ++? A big mistake! Any Visual C ++ textbook on the market assumes that the user has mastered the C ++ language, focuses on things related to Windows programming, and usually focuses on MFC. without the foundation of C ++, you cannot understand anything about MFC.

Many people are eager for quick success and feel that it is not cost-effective to spend six or even one year learning C ++. Even a graphic interface program cannot be developed. This idea is also wrong. Only a part of the world's software has a graphical interface and runs on a Windows platform. It needs to be developed using Visual C ++. After learning C ++, even if you do not learn Visual C ++, there is a lot to do.

There are still many people who want to learn C ++ or C language, first install the entire Visual C ++. In fact, this is a misunderstanding. The Visual C ++ operations are complex and help developers do many things. For beginners, complex operations take a lot of time to master the usage of Visual C ++. The things that help developers do are often something beginners need to know. It is better to learn by yourself.

Besides, we often install illegal versions. This is not a matter of great importance if people do not investigate them. Your conscience is worthy. We didn't learn software to make money, but we didn't respect the fruits of our predecessors. It's really shameless.

I suggest beginners of C language and C ++. It is better to use your favorite code editor to compile the exercises on the computer and use GCC for further study. In other words, theory and practice are the best teachers.

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.