20165323 Learning Basics and C-language basic survey

Source: Internet
Author: User
Tags instance method

20165323 Learning Basics and C-language basic survey I. Skills learning experience

1. What skills do you have that are better than most people?
I think I play badminton is OK, can not be said to play better than most people, but for some play Badminton essentials still mastered.
2. What are your successful experiences with the acquisition of this skill?
To play badminton well, first you have to build up interest in it. You have an interest in playing badminton, you can more into the practice of it, this way your efficiency is high. If you are not interested in this matter, then your attitude to the matter may be only to deal with it, it will not have any meaning, it is difficult to improve their level. Secondly, it is persistence. As the saying goes: "Bao Jianfeng from sharpening out, plum blossom incense from bitter cold." "As long as you can hold on, practice every day, accumulate experience, your ability will be improved." Those professional athletes, why they play so well, is because they practice enough. One action every day to go back and forth hundreds of times, or even thousands, to form muscle memory. And badminton is a very labor-intensive exercise, the process of training physical fitness is also a very difficult process. It is also common to run a fifty or sixty laps around four of them, and then perform a sparring exercise, sometimes waving to your arms. And what is the premise of completing these processes? That is the insistence on this matter in my heart. Why we have a clear gap with professional athletes, because they have been in the ability to further sublimation. This and Lou teacher in the "Do coach and do high school" said practice to have a certain amount can cause qualitative change has a common place. As Lou's teacher said in his blog,

Skill enhancement should be "deliberately trained"
Low-level repetition doesn't work, and training time is no longer useful.
To get rid of "comfort zone", go to "learning area" to learn
We have to step into the panic zone.

--Quote from "doing coaching and doing high school". Most people play only in the "comfort zone", which is why professional athletes and we have a gap between the reasons.

II. Survey on C language learning

1, how do you learn C language?
To learn the C language in the course of the semester, first through the digestion of the teacher's content, understand the meaning of the words, can understand most of the content. But in practice there are a lot of problems, do not know how to use the specific, do not know which step to start. When you finish your homework in the operating system, write some simple code to deepen your understanding of the content by writing some simple questions. When you feel like you understand it, start doing something a little more complicated. Maybe the topic is not as clear as the simple topic, but I will think about it first, try to write the code, if it is not written, and then see how the answer is how to do, if the steps are still not able to understand, and then to consult the teachers and classmates. When you are sure that you have understood how to do it, take some time to do the same type of question, see if you can still do it, to prevent yourself from forgetting this part of the content. Compared with playing badminton, C language learning is the most important is the amount of exercise, you do enough, you can understand the more. When you reach a certain level of understanding, you should get rid of the "comfort zone", continue to do some more complex topics, accumulate certain problems, to achieve a certain amount and cause qualitative change.
2. Estimated number of codes written so far, understanding the situation
The estimate code may have written 3000-4000 lines or so, most of the simple code can understand, but some of the complex problems are still very difficult to do, it is difficult to write it yourself. For me, a lot of practice is necessary, I think to achieve the quality and quantity of balance or more practice.
3, learned the C language, you divide the array pointer, pointer array, function pointers, pointers function these concepts?
Array pointers: pointers to arrays

Array of pointers: array elements are all arrays of pointers

function pointer: A pointer to a function containing the address of the function, calling the function

Pointer function: pointer function return type is a pointer to a type
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? The
does not understand the difference between the two. Check the Baidu "C language Flow and file"
5, learned C language, do you know what is called process-oriented programming? What is the way it solves the problem?
Process-oriented is a process-centric programming idea. is to analyze the steps required to solve the problem, and then use the function to implement the step by step, the use of a one-time call in turn.
6, in the C language, what is a module? Have you ever written a program for multiple source files? The
function should be a module. There are no programs that have written multiple source files.
7 learned the C language, do you know what is "high cohesion, low coupling"? How does this principle apply to high-quality programming?
through the Internet to find, understand the
cohesion Poly, low coupling, said in each module of the program, try to make each module independent, related processing as far as possible in a single module to complete
8, learned C language, How do you copy the contents of array A into array B? How do I find the number 5 in an integer array a?

#include <stdio.h>#define N 80int main(){    int a[N],b[N];    int i,n,k=0;    printf("input n:");    scanf("%d",&n);    printf("A:");    for(i=0;i<n;i++)    {        scanf("%d",&a[i]);        b[i]=a[i];        if(a[i]==5)        {            printf("该数组有5\n");            break;        }    }    if(a[i]!=5)    {        printf("该数组没有5\n");    }        printf("B:\n");        for(i=0;i<n;i++)        {            printf("%d\t",b[i]);        }    printf("\n");    return 0;}

9, how to sort the integer array a (from small to large, from large to small)? Write the corresponding program.

#include <stdio.h> #define N 40int main () {void min (int a[],int N);    void Max (int a[],int n);    int a[n];    int i,n,k=0;    printf ("Input n:");    scanf ("%d", &n);    printf ("A:");    for (i=0;i<n;i++) {scanf ("%d", &a[i]);    } printf ("Small to large sort input 0, from large to small sort input 1\n");    scanf ("%d", &k);        if (k==0) {min (a,n);        printf ("From small to large after the integer sequence is: \ n");        for (i=0;i<n;i++) printf ("%d\t", A[i]);    printf ("\ n");        } if (k==1) {max (a,n);        printf ("Integer from large to Small" followed by: \ n ");        for (i=0;i<n;i++) printf ("%d\t", A[i]);    printf ("\ n"); } return 0;}    void min (int a[],int n) {int i,j,temp; for (i=0;i<n;i++) {for (j=i+1;j<n;j++) {if (A[i]>a[j]) {tem                P=a[i];                A[I]=A[J];            A[j]=temp;    }}}}void max (int a[],int n) {int i,j,temp;        for (i=0;i<n;i++) {for (j=i+1;j<n;j++) {    if (A[i]<a[j]) {temp=a[i];                A[I]=A[J];            A[j]=temp; }        }    }}

Write a program that counts how many lines of code your C language has written.
Not really.
Do you know what a breakpoint is? Give an example of your own debug program.
Breakpoints are where program debugging is automatically interrupted.
Ask questions
1. Why are there different classes in the Java source file? How to differentiate?
2. What are the references to arrays?
3. What is the use of the For statement in Java that differs from the C language?
4. What is the difference between an instance method and a class method?
5. What is the relationship between subclasses and objects?
6, how to understand the interface and what is the idea of programming for excuses?
7, how to use the exception class?
8, the difference between the string class and the StringBuffer class and contact?
9. What is the appropriate situation for the common layout?
10. What are the categories of input and output streams for different sub-classes?
11. How to use preprocessing statements?
12, how to create multi-threading?
13. How are sockets connected to the object?
14, draw the basic graphics should pay attention to what?
15. How do I use Generics and collections?
Java Learning goals and approaches
Develop the habit of writing code every day, do the accumulation of knowledge, the accumulation of quantity to produce qualitative change, thereby improving their knowledge. Every day to complete the assignment of the task, the use of extracurricular time to see PPT, deepen the understanding of the content.

20165323 Learning Basics and C-language basic survey

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.