20165231 Preparatory Work II: Basic Research on learning basic and C language

Source: Internet
Author: User
Tags fread wubi

Article Impressions

Read Lou Teacher's public number in the article, the teacher gave us the first revelation is to insist, all the beginning of difficult, but as long as Ken insisted on will have some achievements, whether it is learning or life aspects. One of the most touching is to lose weight, is my three or four years has been difficult to achieve the goal. If I could make a flag,2018, I'd be thin.

In the article, the teacher mentions our necessary skills-Wubi input and English vocabulary. One is as a unit staff necessary skills, information office typing speed quickly decided to work more efficient than others, the leader of course, like a high efficiency of the person. Wubi input from childhood is to look at the switch, completely do not understand its use, the primary school to promote the study of Hanyu Pinyin so the most customary or pinyin input, in order to efficiency I think it is still possible to try Wubi input method; another is the accumulation of English words, as a computer-related professional students, It is very useful to have a huge amount of word accumulation. After all, the computer is invented by the Americans, operating systems, processors, memory and so also used by the American, core technology and important documents are mostly written in English, the program language is mostly based on English to develop, learn English have a lot of words accumulated not to see a document became "blind".

Personal skills

If you have similar skills to acquire successful experiences (learning, chess, ball, musical instruments, art, games, ...). )

I think most of the boys have this skill if the game counts. But for me, my game skills are not much better than most people, swimming I'm sure it should be my very good skills. After all, there are quite a few people who can't swim, and I win on the starting line. For swimming experience, I think it is like, more travel more practice. Elementary school Easy schoolwork, summer weekend or summer vacation grandpa basically will take me to the swimming pool, one is summer, two is exercise body, third is our hometown rainy season more flood, can swim is also a health skills bar. I learned to swim without deliberately going to a coach or teaching class, and going to the big pond with a buoyancy plate will naturally happen. But it does not mean that the excellent, after I learned to swim I will and some of the good swim peers or adults to exchange and play, naturally more and more good. In my junior high school to participate in the swimming competition won the Group C 50-meter championship, and 47 seconds 50 meters of results refresh record. The experience of success is probably to love, then can do more practice. Don't like to be forced to come and will not have too much effect.

The common point of experience with teachers ' blogs is that you insist. Or the beginning of a difficult sentence, I learned to swim in the big swimming pool to learn, on a floating version, the foot can not touch the ground, choking, flooded countless times. If you don't experience some difficult hardships, learn what you mean. 、

C Language Learning Survey
    • Freshman when relatively lax learning is not good, the vast majority is to look at the textbook and then go to the platform brush questions, the early brush is not much, most of the problems are later in order to meet the usual points brush out all very simple and simple questions, so the basic feeling is very weak. It's nothing compared to my swimming skills. I do not know how much code I have written, the end of the brush into the platform before ten. Let me see the code should be able to understand, write the words may be my logic is not strict can lead to mistakes.

      Quantitative change is the necessary preparation of qualitative change, qualitative change is the inevitable result of quantitative change.

Qualitative change can not only complete quantitative changes, but also open the way for new quantitative changes

--An introduction to the basic principles of Marxism

If you want to have a good qualitative change, you have to prepare for the quantitative changes first.

    • Learned the C language, you divide the array pointer, pointer array, function pointer, pointer function these concepts? After learning the C language, and then after the sophomore semester of six months of baptism, C language feeling forget almost the function, arrays, pointers and some impressions, can know roughly what to do.

Array pointer: Focus on the pointer, indicating that it is a pointer, which points to an array.

Pointer function: Focus on the function, indicating that it is a function whose return value is a pointer.

Function pointer: Focus on the pointer, indicating that it is a pointer, which points to a function.

Pointer array: Focus on the array, indicating that it is an array that contains the elements that are pointers.

    • Finish the C language and understand the difference between the file and the stream? How do I differentiate between text files and binaries? How do I programmatically manipulate these two files?

      The concepts of files and streams, text files and binaries have blurred, so I went to Baidu a bit

      Files are the basic unit of Computer Management data and an important place for applications to save and read data.

A stream is an abstract concept of a sequence of bytes, such as a file, an input/output device, an internal process communication pipeline, and so on. Stream provides a way to write bytes to the backing store and read bytes from the backing memory.

Text files are character-encoded files, common encodings are ASCII-encoded, Unicode-encoded, and so on.
Binary files are value-coded files, and you can specify what a value is (a process that can be considered a custom encoding), depending on your application. In the C language, the text file operation is done by the library function. A total of three functions are used in binary files, Fopen,fread,fwrite. The binary read and write order is to open the read-write file in binary mode with fopen and then write the data to the binary using the fread and fwrite two functions.

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

      "Process-oriented" is a process-centric programming idea, which is to analyze the steps required to solve the problem, and then use the function to implement these steps step by one, using a one-time call to be able.

      Process is actually the most practical way of thinking, The object-oriented approach is also a process-oriented one. It can be said that process-oriented is a basic approach. It considers the actual implementation. The general process is the refinement from the top down. So the process is the most important is the modular way of thinking. Comparing object-oriented, object-oriented approach is mainly to object , the object includes properties and behavior. When the program size is not very large, the process-oriented approach will also show an advantage, because the process of the program is very clear, according to the module and function of the method can be well organized. For example, take the students up in the morning to talk about this process. Rough can be the process of: (1 Clothed (3) Wash your face and brush (4) Go to school, and these 4 steps is a step-by-step completion, its order is very important, you only need one of the implementation of the line.

--from Baidu know

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

      Modularity is the design of a larger program, it is often divided into a number of program modules, each module by a function to achieve a specific function. A C language program can be composed of several other functions, and its program functions are implemented through function calls. Because C language lacks difficult practice, I have done the modular program is arithmetic calculator, subtraction each write as a function, the main function as required input specified command call implementation subtraction function, the disadvantage is not simultaneous operation, each operation can only be counted once and then need to re-specify the algorithm.

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

      Cohesion is a function of the measurement of the link within the module, a good cohesive module should do exactly one thing; coupling is a measure of the connection between modules in a software structure, and the coupling strength depends on the complexity of the interface between the modules, the points entering or accessing a module, and the data through the interface.

Cohesion, low coupling, is the concept of software engineering, is the standard for judging the quality of design, mainly object-oriented design, mainly to see whether the cohesion of the class is high, coupling degree is low.

The purpose of software architecture design is simply to break down the software system and reduce the complexity of software system development under the premise of keeping the software internal connection, and the basic methods of decomposition software system are not layered and segmented. Coupling is an important factor affecting software complexity and design quality, in order to improve the independence of the module, the system should be built as loosely as possible, in the design we should adopt the following principles: if there must be a coupling between the modules, we should try to use the data coupling, less with the control coupling, use or control the public coupling with caution, and limit the scope of public coupling, as far as possible to avoid content coupling. In the module division, to follow the "one module, one function" principle, as far as possible to enable the module to achieve functional cohesion.

--"Baidu Encyclopedia"

-array a contents are copied into array b
#include <stdio.h>int main(){    int a[10],b[10],n;    int i = 0,j=0;        printf("输入个数:\n");    scanf("%d",&n);    printf("输入值:\n");    for(i = 0;i<n;i++){        printf("%d\n",&a[i]);    }    for(j=0;j<n;j++){        b[j]=a[j];    }        return 0;}
    • Is there a number 5 in the integer array a?
#include <stdio.h>void main(){    int x,i,find=0;    int a[10]={6,8,2,9,3,4,5,10,7};    printf("输入要查找的数x: ");    scanf("%d",&x);    for(i=0;i<10;i++)        if(x==a[i])        {find=1;break;        }        if(find==1)            printf("%d是数组元素\n",x);        else            printf("没有找到%d",x);

Input 5, display: 5 is an array element.

    • Sort integer array A from small to large
#include <stdio.h>#define N 5main(){ int i,j,t,a[N]; for(i=0;i<N;i++) { printf("Enter No.%2d:",i+1);   scanf("%d",&a[i]); } for(i=0;i<N-1;i++)   for(j=0;j<N-i-1;j++)     if(a[j]>a[j+1])     { t=a[j];       a[j]=a[j+1];       a[j+1]=t;     } for(i=0;i<N;i++)   printf("%d",a[i]);}

From big to small

#include <stdio.h>#define N 10main(){    int a[N];    int i,j,k,t;    for(i=0;i<9;i++)    {       k=i;            for(j=i+1;j<10;j++)                if(a[j]>a[k])    k=j;             if(k!=i)             {                t=a[k];                 a[k]=a[i];                 a[i]=t;            }    }    for(i=0;i<9;i++)            printf("%d ",a[i]);}
    • Write a program that counts how many lines of code your C language has written.

      Teacher, I do not know how to use the program to count their previous C language write how much code, the previous calculations are estimates. If the Java program of the next semester can design such a program, I would like to try.

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

      Decomposition factorization Program

After this summary feel oneself forget too much, vacation need to cram a little.

Chapter Questions

1, Java program writing is written in a text editor, command run, how to know the error and error location of the program?

2, C language data types and arrays and Java interoperability?

3. Are there any special requirements for the use of instanceof operators? What is the general use of?

4. Is there any connection between the method and the object? Can the import statement be used in addition to the introduction of classes outside the package?

5. What happens to subclass inheritance? What's so special about the abstract programming program?

6. What is special about interface-oriented programming programs?

7. Is the internal class, anonymous class, and exception class declaration methods the same?

8, all kinds of commonly used practical class how to understand? What are the similarities and differences in use?

9. Does the GUI program apply to Android system?

10. Is the stream in Java the same as in the C language?

11. Is the JDBC database operation the basis for establishing a server?

12, Java multithreading refers to multiple tasks at the same time or a task divided into different modules at the same time?

13, how to operate the Java remote call implementation?

14. How does the Java drawing clock make it go the same as the real time?

15. Is the link list in Java similar to the C language?

Learning Goals

First of all, I should correct the learning attitude, clear learning is for their own future, clear their final desired results. Second, learning computer this cutting-edge science and technology, should have perseverance and perseverance. Listen carefully every lesson, questions and gaps in time to check, adhere to the practice of Java code every day, do a good job every time, in a good knowledge of the situation to do an active development, learn a little more knowledge. Expect to be able to write a small program of your own designed to run on your Android phone after the end of the Java programming study.

The articles published by the teacher in the "doing high school" public number are some of the most helpful experiences or suggestions for the future of life learning. Reading carefully is a great help to self-improvement.

20165231 Preparatory Work II: Basic Research on learning basic and C language

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.