Learning Basic and C language survey I. What skills do you have that are better than most people (more than 90%)?
I feel that I am a very ordinary person, if the skills I think people outside, relative to my own may be short-term memory ability slightly stronger, especially the sensitivity of the numbers.
Two. What are your successful experiences with the acquisition of this skill?
The main or oneself in certain environment and conditions to inspire out, but most still lies in their love, and the digital memory of love. I think the interest is very important, do their favorite things can be more effective, so to actively develop their own interests.
Three. What are the similarities with the learning experience in the teacher's blog?
By reading the teacher's blog I conclude that doing any thing must be put into action, and persist, constantly self-accumulation, to get the final success. Although I think my short-term memory ability is good, but I was in advance understanding of the back down, and on paper written out, especially the history and political aspects of the university, a good memory than bad writing.
Four. A survey of C language learning 1. How do you learn C language? , what is the experience and lesson of C language learning compared to your skill?
Mainly by learning the basic knowledge, and then continue to practice learning. But I am through self-study, because there is no good lectures, so mastered the essence of C language, many places still will not. I think in the future study to take a good lecture, do not understand to ask, learn to learn the essence.
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?
I'm not sure how much code I've written, but I'm guessing there should be 2000 lines of code. Understand the general bar, can basic operation. I think not only to understand more to practical use, or a lot of practice, after all, it makes perfect.
3. Have you learned the C language, you divide the array pointer, pointer array, function pointer, pointer function these concepts?
An array pointer is a pointer to an array. An array of pointers is an array of elements made up of pointers. A function pointer is a pointer to a function. A pointer function is a function, and the return type is a pointer.
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 study is not solid, now has forgotten. The query-aware file is the basic unit of Computer Management data, and it is also an important place for application to save and read data. A stream is an abstract concept of a sequence of bytes. Each file has properties such as file name, file path, creation time, and access limit. Stream provides a way to write bytes to the backing store and read bytes from the backing memory.
5. 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. is to analyze first, then use the function, step by step call, then can solve.
6. What is a module in C language? Have you ever written a program for multiple source files?
The program should be modular, and then divided into pieces, one by one to complete. I haven't written it yet.
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?
By accessing the relevant information, I learned that cohesion is a measure of the connection within a module from a functional point of view, and coupling is a measure of how each module in a software structure is interconnected. The so-called high-poly-energy low-coupling is the criterion of judging good or bad, and whether the cohesion is high or low. I'm not particularly sure how to implement it specifically.
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?
Copy array A into array b
#include <stdio.h>#define N 10int main(){ int a[N],b[N],i,n; printf("请输入数字:\n"); scanf("%d",&n); printf("input a:\n"); for(i=0;i<=n;i++) { scanf("%d",&a[i]); b[i]=a[i]; }}
Find the integer array A has no number 5
#include<stdio.h>int main(){ int A[100]; int i; for(i=0;i<100;i++) { scanf("%d",&A[i]); } for(i=0;i<100;i++) { if(A[i]==5) { printf("数组中数字有5:\n"); } else { printf("数组中数字没有5:\n"); } } return 0;}
Arrange from small to large
#include <stdio.h>#define N 10int main(){ int a[N],i,j,k; printf("输入10个整数:\n"); for(i=0;i<N;i++) scanf("%d",&a[i]); for(j=0;j<N-1;j++) for(i=0;i<N-1-j;i++) if(a[i]>a[i+1]) { k=a[i]; a[i]=a[i+1]; a[i+1]=k; } printf("排序后的结果为:\n"); for(i=0;i<N;i++) printf("%5d",a[i]); printf("\n");}
From large to small arrangement
#include <stdio.h>#define N 10int main(){ int a[N],i,j,k; printf("输入10个整数:\n"); for(i=0;i<N;i++) scanf("%d",&a[i]); for(i=0;i<N-1;i++) for(j=i+1;j<N;j++) if(a[i]<a[j]) { k=a[i]; a[i]=a[j]; a[j]=k; } printf("排序后的结果为:\n"); for(i=0;i<N;i++) printf("%5d",a[i]); printf("\n");}
9. Write a program that counts how many lines of code your C language has written.
The above is an example.
10. Do you know what a breakpoint is? Give an example of your own debug program.
A breakpoint is where the program runs to the line where you set the breakpoint automatically when the program is debugged.
Five. Chapter Questions
- How does Java Save the source file?
- What are the arrays in Java?
- What are the operators in Java?
- What is the difference between an instance method and a class method?
- What is an abstract class?
- How does an interface implement callbacks?
- What are exception classes and anonymous classes?
- How to use the common layout?
- What is a random stream?
- How does the database work?
- How is the preprocessing statement used?
- How is multithreading created?
- How Yuncheng calls?
- How to draw a diagram?
How about a linked list?
Six. What are your specific goals for the study of Java programming in contrast to the C language? How to improve the program design ability and develop the computational thinking through deliberate training? How do you achieve your goals through "doing middle school"?
- My goal is to pre-class preview, after-school review, Steady, learn java.
- First from easy to difficult, a lot of training, and then the brain slowly thinking, in the thinking of progress and perfection.
- is to continue to learn, to set their own goals can be completed, step by step adhere to continue.
20165329 Learning Basics and C-language surveys