The pointers of C + + and the learning comprehension of programming

Source: Internet
Author: User
Tags object object

Bo Master is a 22-year-old fresh graduates, but also fortunately in the school's efforts, through self-study to make up a small part of the computer is not a professional birth defects. Once someone helped me, I think I should write a blog, happy to share.

Bloggers began to practice in November last year, because of self-study, the foundation is bad, how bad? I can only tell you, even the C + + syntax is not clear. Class template is nothing to know, so that people ask me "Do you know the template?" (Tell me about your understanding of the template) ". Oh, template ah, template, the interviewer began to smile, I think now, I guess the interviewer was just not on the spot to laugh down on the ground. Fortunately, later a manager looked at me very hard, very studious, learning attitude good. Ken took me in and got a salary that was one months to eat and rent. Until now, I am also very grateful to him, he taught me not only programming, not only if the work, but a man. Learn to be a man and do things first. People do a good job, in fact, a lot of things will be done slowly. This truth is believed that many people will understand. OK, let's get to the chase.

The previous year has been in csdn, in fact, csdn the problem in the work rarely useful on the (CSDN blog is very good, very attractive), basically a lot of grammatical problems, students in the problem, working for several years of enthusiastic personnel in the explanation, of course, not a lot of advanced issues. In that also learned a lot, of course, now also do not go to csdn, the reason for personal ideas (occasionally will go to irrigation, fill the foundation, learn the explanations of teachers, understand their thoughts). Safe haven, so do not continue to say this. I can only say, if you want to look at your own foundation, go to CSDN see there will be a lot of make up, hold your memory, this is like a memory chain, you do not know all the uprooted.

A lot of people say C + + is too disgusting, especially C + +, the threshold is too high, in fact, Bo Master think as long as the master, a short time will naturally enlightened. Understanding pointers, what is the nature of pointers? "Pointer is the essence of the address" pointer is thrown an address, who love with whom to use, with no need to know, in fact, not just pointers, programming is actually the address, we are operating memory only. Rather than in the "All Things are objects," said, "All things are memory more suitable", of course, this is a blogger's own view, do not approve of the Please forgive me, after all, Bo Master or Internship for a year (this year also hit soy sauce bar, what all look, messy, also does not count efforts, fortunately some people teach, know a few Cheek thick sticky asked only a little bit of sentiment--here thanks to them, respectively, is Shanghai Qin and the Internet, Liu Teacher, 360 a leader, Jinshan, a friend of the same class (this person has the talent, very envious of him, also very hard, also clever, said he also has a classmate, freshman went to Jinshan Bar, the leader, There is a Beijing company network name "Lone Star to catch the Moon", as well as a key University of Yunnan Tobacco and wine students, as well as the first company's three colleagues and managers of the rookie, programming this thing, get a year just to start it.

Make an analogy Class test{

Fun ();

Member

}

int main ()

{

Test T; ---->t is just an address, do not always think of the book, declaring a Class X object, Object object? What is an object and what is object-oriented? The book only says "encapsulation inheritance polymorphism?" That's what the book says, "I don't think many students in school will know." Most teachers will not tell you what is an object? Plainly, it is a piece of memory, access to your custom data, this piece of your custom data is composed of common types, common types are defined by the language itself, the language itself is the developers from the low-level code through the compiler do it? This is the most fundamental object-oriented answer? Subdivide segments in segments:

The first manager taught me, the colleague is also the interview question, wants me to carry on the Earth the thing to Mars, Subdivision subdivision again unceasingly Subdivides. To make an analogy: the following

Task<tresult> Emperor's online platform Royal online platform Royal online platform Emperor's prestige on-line platform Emperor's online platform Royal online platform Royal online platform Emperor's online platforms royal online platform Royal online platform premier online platform Royal online platform Royal online platform Royal online platform Emperor's prestige online platform Royal online platform Royal online platform Emperor's online platform Emperor Prestige online platform Premier Online platform Royal online platform Royal online platform Royal online platform Royal Prestige online platform Emperor's online platform royal online platform Emperor's online platform Royal online platform Royal Prestige online platform online platform Emperor's online platform Royal online platform Royal online platform Emperor's prestige online platform Royal online platform Emperor-Zun online platform Emperor's online platform Royal online platform Royal Prestige online platform Online platform Emperor's online platform royal online platform Emperor's online platform Royal Prestige online platform Emperor's online platform royal online platform Emperor's online platform royal online platform Emperor's online platform platform royal online platform Emperor's online platform Royal online platform Royal Prestige online platform Royal online platform Emperor Zun online platform Emperor's online platform Royal online platform Royal Prestige online platform Line platform Royal Online platform Royal online platform of the emperor's online platform, the Royal online platform of the emperor's online platform, the Royal online platform of the emperor's online platform, the emperor-Zun on-line platforms Royal online platform Royal online platform platform Royal online platform Emperor's online platform Royal online platform Royal Prestige online platform Emperor's online platform royal online platform Emperor's online platform Royal online platform Royal Prestige online platform Platform Royal online platform Emperor's online platform Royal online platform Royal Prestige online platform Emperor's online platform royal online platform Emperor's online platform royal online platform Emperor's prestige online platform Emperor's online platform Royal online platform Royal Prestige online platform Royal online platform Royal Prestige online platform Royal online platform Royal online platform Emperor's online platform Royal Prestige online platform Taiwan Emperor's online platform Royal online platform Royal online platform Emperor-Zun on-line platform Royal online platforms Royal online platform Royal online platform Royal online platform Royal online platform Emperor Zun online platform Emperor's online platform Royal online platform Royal online platform Emperor-Zun on-line platform Emperor's online platforms royal online platform Royal online platform Royal online platform Royal online platform Emperor's prestige online platform Emperor's online platform Royal online platform Royal online platform Emperor-Zun on-line platform Emperor's online platforms royal online platform Royal online platform Royal online platform Royal Prestige online platform

Task<tresult>

Std::vector<int> M_vector; What is the object of the----->m_vector? Is the element inside this vector, the object of the element inside? I want to say is the address, do not know appropriate? Personal understanding, you may wish to talk about your own views.

}

Is the pointer more obvious?

Personally, the programming of this thing, "operating system" "Compiling principle" "microcomputer principle" is essential, although in the short run, his role is not much, not what, but long and long to bring the help is different where More important is that mathematics, mathematics brings a kind of thinking, you may feel that there is no algorithm, but bloggers said his manager, a math degree colleague, the relationship is better, he is in Huawei now, he has less programming, but really a lot of things even if you piled up a bunch of code, He can quickly use quick and concise thinking to come out, and then immediately to do it out, and interview all kinds of algorithms, talk with people is so easy and comfortable. HR is more appreciative of such people.

In addition, to the school in the programming on the way to the students a little advice, more exchanges, we later into a company, the most important is not just learn how to program, how to program efficiently, not quite you say, I have seen a few company code, that is the same code, no comments, written inexplicable wonderful. For example: bool _bool = IsError () if (!_bool); So many times it is not necessary to direct such if (! IsError ()) is clearer and more readable? This is just the tip of the iceberg. Write code the brain must have a thinking process followed, logic must be strong, do not suddenly drill a line of code, the logic is broken, if you have to be involved in the program is not appropriate, or other reasons, it must appear to write a note, in the future to improve the improvement.

In addition to learning how to program, and it is your eldest brother's programming ideas, your colleague's programming ideas, from the way of life, from the way of thinking, work, and so on to learn, this is the reason for a team exists, the team needs to make up for each other, strengthen insufficient, enter a company is not only to take money, technology good job , then the inevitable is a "tragedy", so that learning either for you, or for your descendants help is not to be thought of.

Finally also soy sauce, many people will also say that they are not suitable for programming, after learning at all no idea, do not know how to start. Do not know just follow the code example copy, first run his look, what effect, and then look at each line of code, copy it again, his heart once again, after the completion of thinking over their own ideas to do a. This is down, from elementary school to high school to the final university, reading read, is not so? Look at other people's thoughts, do their own. The cultural thought of the Chinese nation is immeasurable. A lot of things are life two, two born three from scratch. It's impossible to suddenly become sharp.

All right, a little whining. I ah, in fact, Bo Master code is like this blog, not a little bit of logical thinking, the east of a sentence, I hope to learn together with you.

The pointers of C + + and the learning comprehension of programming

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.