My path to getting started with Visual C ++ (I)

Source: Internet
Author: User

First, I am not sure if my visual C ++ is getting started. The current level is to be able to understand somethingCodeOr "blind" for VC.

"N failures, 1 success, not learning well ...... You are too stupid !" If you have such a comment, congratulations! You have learned about 99.9% of me. I cannot even remember the specific number of N numbers. conservatively speaking (n ≥ 6 = true), this expression can be true. Looking back at my visual C ++ getting started process, it is definitely not as elegant and elegant as Huang Feihong's kung fu, but more like a stone, crawling and hitting at the bottom of the bed. Today is the weekend. I wrote a few lessons that I learned from the previous n failures. If a friend saw this article, he would just try visual C ++, even if it is the original path that I leave for you.

I. Basics of C ++

The first reason for getting started is the language basics. the computer interest group organized by the school in High School studied the PASCAL Language (I don't know why I want to speak this language. If I want to cope with the competition, I also had a C language group ), so when I switched to Windows Programming in college, I first chose Delphi. in my junior year, the school required to take the second-level examination of the country. The second-level examination did not have Delphi, so I switched to VB again because VB was very similar to Delphi. Later I found that vb ide is easier to use than Delphi, and the basic language is easy to write, so I abandoned delphi. (I am afraid I will scold me again. If it is not too lazy, how can I like VB ide? This is indeed the case. Later I will mention that lazy is not only an enemy of VC, but also a lazy ). I have been dealing with VB for many years, making me very uncomfortable with the C/C ++ language-I don't like C ++ to write a sentence with a semicolon, I do not like to strictly distinguish uppercase and lowercase letters. I do not like to write two equal signs when comparing them ...... In short, I don't like C ++ very much, so I'm not interested in learning it if I don't like it (interest is very important to mention later ). Of course, if you ask me what language I should learn now, I will not hesitate to recommend C ++ to you, because in terms of common languages, the knowledge contained in the C ++ language is quite comprehensive-from process-oriented, to object-based/object-oriented, to templates and dimensions, to some extent, other languages are a subset of the C ++ language or are imitating C ++ and moving closer to C ++.

In the course of several failures, it is obvious to me that Learning Visual C ++ without learning the C ++ language is a kind of self-abuse. Before getting started, I spent more than three months systematically learning the C ++ language. Then I spoke confidently about the door of Visual C ++. For example, when you look at the DLL call, you can use the "function pointer". The logic is as follows. If you don't have the basics of C ++, it's basically impossible. So, before learning Chinese, don't look at "Dream of Red Mansions", it's not "reading pictures and writing". Advise those who want to switch from VB to VC. if you expect to learn C ++ language just like VB, you will be wrong.

By the way, I would like to remind my friends who are getting started with C ++ that they should pay attention to ANSI/ISO C ++, that is, the standard C ++. c ++ books on the market are mixed, many books are old books with new skins. They are still about non-standard C ++ and must be chosen. The computer book is very expensive. You may wish to find it in an electronic version. There are many online books, and even good books such as C ++ primer or C ++ meditation have been posted on the Internet. However, my favorite book is "C ++ programming book", which is a perfect book written by an educational master. As for the compiler selection, install vs. net2003 if conditions permit. It is said that the visual C ++ 7.1 compiler is currently the best compiler for Standard C ++ support.

Ii. Selection of VC learning materials

There are many reasons why it is difficult to get started with VC. Among them, there are few excellent VC learning resources. The C ++ language is deep, and the use of visual C ++ is complicated, coupled with less information-it is difficult to understand. A small amount of data does not mean no. selection or mining is the key. For the time being, documents are divided into three categories: CDs, books (including e-books), and documents (including online files.

In terms of data selection, we must discard the two bad practices in Chinese thinking: <1> get off for nothing <2> get rich overnight.

The "gain without profit" idea will lead to the selection of "Lecture" materials, such as multimedia CDs. The result is that the disk capacity is usually small, but the content is required to be comprehensive (or how to sell it), which leads to poor consistency of knowledge and fast introduction, if you listen over and over again, you will not be able to effectively attack your confidence. In the end, you can only give up. We look forward to a rich array of content as soon as possible to explain the wonderful CD market.

The idea of "getting rich overnight" will make you tend to choose "quick success" teaching materials. Most of these textbooks are deceptive-you can write a pop-up window to Hello world, which can be regarded as Visual C ++? We should not deceive ourselves. At least you must be able to connect to the database and use socket ...... How can this knowledge be quickly achieved?

I have a lot of learning materials for Visual C ++, but I don't have any of them. Because no book is perfect, I use them alternately, the benefits of doing so are:

<1> Good Knowledge Consistency, low leap, low grade slope, and comfortable reading. It is said that the learning slope of Visual C ++ is steep, and that steep slope appears when learning from pure C ++ language to Windows programming, c ++ language learning is not that difficult.

<2> there is an accumulation effect. This book is not completely accurate, and another book will help you with it. You have not paid attention to this book. The next book will always have a long eye. There are also some small examplesProgramTo show you how to split the MFC classes or functions. The objective is very clear and the effect is good. Learn a little bit every day, not drawing fast, and Drawing solid. Hehe, engaging in "Object-Oriented" with VC, of course it will take a day to get in love.

<3> practice. If many books put it as a key point, you must keep it in mind and perform operations on the computer. The examples in the book must be thoroughly analyzed, and there must be no "similar" idea-How much is the difference? The program is not capable of making a wrong letter. It will be far from being able to write and expand the example.

<4> detailed and rich content. In this regard, msdn is the first release, and Microsoft Visual C ++ books that can be found online, is In The wdl format. Although msdn is an English version, the English version is not difficult-You can trust me as much as possible, because the English version below is incredibly bad. Msdn has two usage methods: one is used as a dictionary, because the content is full; the other is used as a pastime, so it's okay to read a class and type several lines of code, do you see the inheritance diagram of the MFC? It's pretty fun. It feels like shopping-and there's no money for things, help yourself.

Resources on the Internet are very rich. Do not miss it! Both the good website and the download site BB are. There are also forums, news groups, online QQ groups ...... What do you ask me? Haha, it's close at the corner of the sky :)

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.