C + + learning experience

Source: Internet
Author: User

C + + is a process-oriented and object-oriented programming language, it involves the design of ideas, methods, syntax, algorithms, etc., it's theoretical, comprehensive and practical more strong, people feel very difficult to learn, learning to half do not understand and thus halfway. I remember when I first learned C + +, I didn't know anything. At first I was full of excitement, thinking of myself skyrocketing rise to make a perfect program. In the course of the study of the teacher and the contents of the textbook can be understood, but on the machine when the teacher asked us to write a small program ourselves, but also feel impossible, a blank in the brain. The more backward the learning the more incomprehensible, so that finally see C + + headache, to learn C + + produced a sense of fear. There is no doubt that the last semester of the C + + to hang section of the way the end.

During the semester, I will continue to learn C + +. I forced myself to see the C + + textbook that I have been using for a long time, slowly to understand the inside of the things, encountered to see things to see more than a few times, really do not understand to ask classmates. Learning or a little gain, compared to what was not understood before, can read some simple code, but it is difficult to write a program yourself completely. In the process of learning C + +, I feel that nesting loops and pointers are the least that I can understand. Learning C + + will require a lot of research. Learning C + + programming is inseparable from the practice of computer. Through programming and debugging programs, you will find a lot of problems, whether large or small, by solving these problems, not only can test whether they really mastered the content of the study, but also deepen the understanding of the knowledge learned, accumulate programming and debugging experience, improve their actual programming ability, even if they just knock code. Here's a simple example of some of the problems that have arisen in the course of programming debugging.

#include <iostream>

int main (void)

{int a,b,c;

cin>>a>>b;

if ((a>b) &&<a>c))

if (b<c)

cout<< "min=" <<b<< ' \ n ';

Else

cout<< "min=" <<c<<endl;

if ((a<b) && (a<c))

cout<< "min=" <<a<< ' \ n ';

}

This program is still relatively simple amount, but the commissioning of the machine at the time of debugging for a long time, there are many small problems, the main is not careful enough. For example, forget the score number, or less curly braces, case, etc. There will be some errors when running, as long as you follow the hint of a change, it is very simple.

Finally, I also found that learning this course, the most important thing is perseverance, perseverance. Rome is not built in a day, learning to rely on the accumulation. Learning C + + itself is a difficult process, so we should always keep the interest in it to persist, to learn, learn fine. In addition, the study of this course is only to know that the theory is not good, is tantamount to armchair, to take the initiative on the machine more practice, improve their hands-on ability.

C + + learning experience

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.