20165316 Skills Learning experience and C language learning

Source: Internet
Author: User

20165316 Skills Learning experience and C language learning one, skills learning experiences

I can play ping-pong, in China, I can only say I "will" play, as to "better than most people" I dare not assert, because I do not feel the table tennis circle is far deeper than I imagined. However, I think the process of table tennis learning has inspired me in the future, I hope that through the summary to everyone, the most important is to give themselves, a direction.

such as table tennis sports, mainly repeated practice, I remember the most profound is the first grade of primary school, just can play on the stage, the coach let me practice multi-ball, that is, one use of an action routine 200 to 300 consecutive balls. After that, you have to practice basic skills every time you practice. It is no exaggeration to say that the basic skills throughout the life of a table tennis player. However, many people will find that the table tennis players in the game often to save the ball to make some "non-routine" action, many classic photos have recorded their wonderful moments, so what is it that they can play these wonderful confrontation? The answer is very simple, is the usual basic training form of "ball sense." In the end, athletes do not adhere to the "type", but the pursuit of more internal things-the ability to control the ball. It is said that national athletes can be accurate to the ball to a coin, the ability to control the ball, in other words, self-control ability, more important. This and Lou teacher in the table tennis training summary described: " any study is to enhance the ability of people to control " is the same.

In addition, in the more than 10 years of playing table tennis, my attitude to table tennis from the "passive acceptance" into the "active learning", it is clear that repeated training is not necessarily boring and boring, but with the increase in training difficulties and strict requirements of their own, I gradually feel the joy of challenging myself . And this kind of fun is the result of scientific training methods: each goal can be achieved, but there are certain difficulties. In this way, I will not give up or arrogant, the cumulative, technical level naturally improved. This point Lou Teacher in the table Tennis training summary is also discussed. In fact, with different opponents to fight also have this effect: can see their own shortcomings, and then self, or have the coach to help the reflection and improvement , and ultimately achieve self-improvement. At this point, the outcome of the game has become less important.

Second, C language Study survey 1. How do you learn C language? (Homework, experiment, textbook, others), what are the experiences and lessons of C language learning compared to your superb skills?

I study C language is mainly in class listening to the teacher, class in the online platform practice, encounter will not be the problem with Baidu to check the answer, the answer program copied down, analysis and learning. In the C language learning process, I am relatively deficient in self-learning, since the grasp of the teacher required to learn can be, the examination through can, self-satisfaction, no desire and motivation to further study, leading to my C language learning has stayed in the comfort zone, simple procedures to repeat, did not try to challenge themselves, Did not actively explore the C language more features. In short, my C language Foundation is not strong enough, the understanding of computer language is not deep enough.

2. How many lines of C code have you written so far? What is the understanding? Quantitative change caused qualitative change, how to balance the quality and quantity?

Number of codes I also mentioned in the previous blog, about 3000 rows or so, the basic self-written all understand (now also quickly forget the light). This shows that without persistent practice, any skill will regress. So on the quality and quantity, I think it should be gradual. It is not possible for an ordinary student like me to understand the sample program and not recreate it. That means I have to write at least 2 to 3 similar programs (the solution is similar) to be able to master the basic. So, after learning a point of knowledge, I have to try myself can use, this is the process of quantitative changes, and then consider the more difficult procedure, that is qualitative change. I think the quantitative change and the quantity of qualitative change 2:1 to 3:1 most suitable. The use of time probably to reverse the change in the qualitative change of about 1:2 to 1:3 more appropriate.

3. Have you learned the C language, you divide the array pointer, pointer array, function pointer, pointer function these concepts?

These concepts are mainly about nouns, that is, "pointers", "arrays", "pointers", "arrays". So an array pointer and a function pointer are essentially a pointer to an address in the array and to the address of a function, whereas a pointer array is the name of a set of addresses; A pointer function is a function that returns a pointer-an address.

Reference: Baidu explanation, array pointers and pointer arrays, function pointers and pointer functions

4. Have you learned the C language, do you understand the differences and connections between files and streams? How do I differentiate between text files and binaries? How do I programmatically manipulate these two files?

Ashamed, don't know. But I found the difference between a text file and a binary file; The programming operations of the two seem to be the same, except that the rules are different when writing to read, see what the difference is between a text file and a binary file in C, and verify that they are encoded differently.

5. Have you learned C language, do you know what is process-oriented programming? What is the way it solves the problem?

The process as its name implies the process as the center, focusing on a sentence of the "verb" solution to the problem. Take the steps you need to make it one step at a pace.

Reference: Yang Jingyuan seniors ' blogs, answers

6. What is a module in C language? Have you ever written a program for multiple source files?

I personally understand that by splitting the different steps of a program into a single module, it is called separately to achieve the desired effect. I am ashamed that I have not written more than one source file program.

7. Have you learned the C language, do you know what is "high cohesion, low coupling"? How does this principle apply to high-quality programming?

According to the vague memory and my understanding of the money teacher's words before, "high cohesion, low coupling" refers to a program of the various modules between the minimum, the module's universal use of a state as high as possible. In high-quality programming, we should try to use out-of-the-box functions and modules, with as few languages as possible to connect several modules to achieve the desired purpose.

Reference: Baidu Encyclopedia

8. Having learned C, how do you copy the contents of array A into array B? How do I find the number 5 in an integer array a? How do I sort an integer array a (small to large, from large to small)? Write the appropriate program.

The answers are as follows

#include <stdio.h> #include <stdlib.h>void maxnumber (int a[30],int N)//from large to small sort {int I, J, Max, temp;        for (i=0; i<n; i++) {max = i;            for (j=i; j<n; J + +) {if (A[max]<a[j]) {max=j;            }} if (Max!=i) {temp=a[i];            A[i]=a[max];        A[max]=temp;    }}}void minnumber (int a[30],int N)//from small to large sort {int I, j, Min, temp;        for (i=0; i<n; i++) {min = i;            for (j=i; j<n; J + +) {if (A[min]>a[j]) {min=j;            }} if (Min!=i) {temp=a[i];            A[i]=a[min];        A[min]=temp;    }}}int Main () {int i,n,a[30],b[30];    printf ("How many numbers?\n");    scanf ("%d", &n);    if (n>30) {printf ("too many!\n");        } else {printf ("Please input numbers:\n"); for (i=0; i<n; i++) {scanf("%d", &a[i]);    b[i]=a[i];//array Content Replication}} maxnumber (A,n);    for (i=0; i<n; i++) {printf ("%d", a[i]);    } printf ("\ n");    Minnumber (A,n);    for (i=0; i<n; i++) {printf ("%d", a[i]); } return 0;}
9. Write a program that counts how many lines of code your C language has written.

Ashamed, can't write, can only put a part of the code that I changed someone else.

#include <stdio.h>#include <stdlib.h>int main(int argc, char* argv){    FILE* rf = fopen("f:\\main.txt","r");    char a[1024][128];    int i=0;    while(fgets(a[i],128,rf))i++;    int n=i;    printf("行数:%d\n",n);    fclose(rf);    i=0;    system("pause");    return 0;}

This code can be counted in a TXT document in the code, but each line must be less than 128 bytes, and can not be counted to overflow, some files (such as the main.txt here is I use the image Base64 encoding to get a long code), it will lead to crashes, can be said to do simple statistical work.

Reference: Baidu knows

10. Do you know what a breakpoint is? Give an example of your own debug program.

The breakpoint is the place where the program debugging is automatically interrupted, for example, when I debug the 9th program, the reason for the crash is to set the breakpoint on the fifth line of the main program and the program crashes, indicating that the data overflow causes a crash when the file is opened for looping.

The goal and approach of Java learning

As I wrote in my first blog post, I wanted to be able to master the language and use it to write simple applications, and since Java is called "Object-oriented programming," I think it's unique in terms of C, In the way of thinking also must be different, I hope to know how to master the computer language design ideas and thinking mode . So as to be able to extrapolate, comprehend by analogy.

I think, I should bravely from the "comfort zone" come out: in learning, the courage to challenge problems, usually more attention to the forefront of the industry dynamics, in the Blog Park This platform, the use of its rich resources, challenge difficulties, seek answers; in life, adjust their mentality, temper their own will, Squeeze more time to increase your self-worth and develop good habits that benefit you for life.

Write the program is mainly practice, light reading is impossible to break through, Lou teacher in a middle school in the article mentioned "not only to do, but also to understand the principle behind, not only to use tools, but also to understand the theory of support" "learning promotion to have feedback." Who wants to be "expert", but how many people can eventually realize their dreams? Therefore, I plan to make full use of time this semester, to carry out useful, a lot of learning, in the early accumulation of experience, through the Blog Park to grow their own insight, so that they do not fall into the "tired of coping" situation, at the same time, through a variety of ways and teachers, students communicate, and even through the network to learn some Operation of the "Great God". In short, looking at the stars, down-to-earth, I believe that the teacher "do high school" under the correct thinking, I can achieve the goal.

20165316 Skills Learning experience and C language learning

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.