20165204 Learning Basics and C-language basic survey

Source: Internet
Author: User

Learning Basics and C-language basic survey Ability to learn

When it comes to skills that are better than most people, I may be the one who has the most say. Since childhood I was reluctant to go out and play with other children by the mother compulsory registration of a series of special classes, all-encompassing. One of my favorites is calligraphy. Not only because of the good relationship with the teaching teacher, but also more I am intoxicated with the brush strokes to grind a stroke between the wonderful. There is no shortcut to the study of calligraphy, everyone should start from the correct regular script, starting from the "one", practice each stroke of writing. This point and Lou teacher practice swing action is similar to the wonderful. After learning the regular script, and then copying running script, script, seal script and so on, practice is actually the brush of the control. You say that a person to draw the word, who will not, but to use a brush a pen and a painting to write the word, not on the stroke fill fill, not a day or two to do the study. It's like playing ping-pong balls to the other side of the table with a beat, who wouldn't do it, but there's a strength to play, a point of view, and a quick hit of the ball, is two days of study can do it?
Of course, blindly copying does not make everyone, the real level will accumulate with the accumulation of time, slowly become their own things. Three or four years without moving the brush, I went to the university after the pen, write even better than when I wrote. The growth of age will also bring about qualitative changes, from "writing" to "calligraphy", the structure and aesthetic sense of the word have a deeper understanding. This week I almost all of the time to write couplets, from the original jerky dare not to write, to the day before the morning to two o'clock in the afternoon to nine points written to the slightest pause, intoxicated in which can not extricate themselves. Our little famous calligrapher, Mr. Shen, said: "So it is counted into the Tao." ”

C language Learning situation
  • What are the experiences and lessons of C language learning?
    C language learning mainly relies on the teacher to provide the operating system, in the above practice, reference the answer to the code, learn a variety of excellent algorithms and statements, and then put into the next exercise. As with the study of calligraphy, learning from imitation, gradually become their own things. Just relative to the study of calligraphy, my study of C language is not like calligraphy like love, did not carry out a lot and long-term training, now there is no more than the number of things in my mind.

  • How many lines of C code did you write yourself? What is the understanding? Quantitative change caused qualitative change, how to balance the quality and quantity?
    It is estimated that 3000 or so lines of code are written, but many are repetitive, simple, useless for the sake of brush points, and are not daring to try for more difficult, difficult-to-understand topics and code algorithms. The so-called quantitative change also did not cause qualitative change, but a more mediocre C language users.
  • Array pointer: essentially a pointer, a pointer to an array.
    Array of pointers: array elements are all arrays of pointers, essentially arrays.
    function pointers: not clear. Read the data and interpret it as "pointer to function variable".
    Pointer function: A function that returns a value of address.

  • 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?
    Do not understand, the following concept reference from Baidu Encyclopedia
    Flow: A stream is an object of a class, and many of the file's input and output operations are provided in the form of a member function of the class.
    Files: Files are the basic unit of Computer Management data and an important place for applications to save and read data. Each file has properties such as file name, file path, creation time, and access limit.
    does not differentiate between text files and binary files, nor does it implement programming.
  • Do you know what is process-oriented programming? What is the way it solves the problem?
    is a process-centric programming idea. These are programmed with what is happening as the primary goal, unlike the object-oriented one who is being affected.
    Progressive implementation. Analyze the steps required to solve the problem, and then use the function to step through the steps, the use of a one-time call in turn.

  • What is a module? Have you ever written a program for multiple source files?
    The program is divided into various modules according to the function, and then the module is stitched into a complete program.
    Not written.

  • Do you know what is "high cohesion, low coupling"? How does this principle apply to high-quality programming?
    I do not know, after reading the reference material still confused, C language Foundation is not solid.

  • How do you copy the contents of array A into array B?

     #include <stdio.h> #define N 20int main(){int i;char A[N] = "\0",B[N] = "\0";printf("Input:\n");scanf("%s",a);for(i = 0;a[i] != ‘\0‘;i++){    b[i] = a[i];}printf("%s\n",b); return 0;}
  • How do I find the number 5 in an integer array a?

#include <stdio.h>main(){    int A[5]={1,9,6,5,4};    int i;    for(i=0;i<5;i++)    {        if(A(i)==5)        {        printf("数组中有数字5");        break;        }    }}        
  • How do I sort an integer array a (small to large, from large to small)?

    #include <stdio.h>main(){int A[5]={1,9,6,5,4};int i.j;for(i=0; i<5; i++)    for(j=0; j<4-i; j++)        if(A[j]>=A[j+1])        {            temp=A[j];            A[j]=A[j+1];            A[j+1]=temp;        }for(j=0; j<5; j++){    printf("%d\n",A[j]);}}  

    To get from big to small,
    Change "if (A[j]>=a[j+1])" In the above program to "if (a[j]<=a[j+1)").

  • Write a program that counts how many lines of code your C language has written.
    Not going to. No train of thought. The previously written code was not retained.

  • Do you know what a breakpoint is?
    After you set a breakpoint, the program automatically compiles when it stops at the breakpoint. You can check for errors in your program by setting breakpoints.
  • Quick reading PPT, each chapter raises a question
    • What is the advantage of Java embodied in real-world applications?
    • Java data structure type and C have a lot of similarities, specific learning how to excessive?
    • What is the function of the instanceof operator?
    • is the value pass or reference pass when the entity object is a parameter?
    • What is the transformation relationship between the object-oriented and the child class and the parent class?
    • The use of import statements in the PPT example is not enough to read.
    • Asserts whether the function can be implemented using an if statement. How to close an assertion statement when the code is running.
    • What is the difference between a reference and an entity?
    • How to determine the various event types.
    • How the stream is used.
    • The method of JDBC connection, the implementation of query function.
    • Both methods of threading creation are not well understood.
    • Why is UDP information transfer security worse?
    • is Boolean operation the basis of a graphical search engine?
    • The use of collections is not very understanding.
Learn about Java

As for the study of calligraphy, I hope I can immerse myself in it, practise more, not stop at ordinary programming language, and understand the superiority of Java more profoundly.
Based on a lot of training, coupled with appropriate guidance and breakthroughs. C Language learning for me is generally a failure, and always feel that there is nothing left in my mind. Java will not repeat itself in the study.

20165204 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.