Learning Basics and C-language basic survey
What skills do you have that are better than most people (more than 90%)?
Seeing the title, I was confused: what can I do better than 90% people? Reasoning, it may be the hands-on ability of this aspect. As a child, I liked to disassemble, assemble, and do some simple handwork. To the middle school, a variety of experiments let me very fascinated, when encountering an interesting experiment, I will as soon as possible, to complete, will be independent to inquire all kinds of information, just to successfully complete the experiment.
The experience of success is out of the way, but I think the motivation to support me is interest. Only if I have a strong interest in something, I will take the trouble to do it until I have achieved my goal. And this theory can also be used in learning: When a person is interested in learning, it is not necessary to urge others to learn, he will spontaneously to find a way to learn: If the study is not interested in, no matter how others in the back push, he is only can not afford to fools just. Therefore, I think in the process of learning, the development of interest in this ring is very critical.
A survey on C language learning
How do you learn C language?
As with most students, I study C language based on the textbook, the teacher's PPT and the C-language question Bank of these three aspects, through class listening, class with the teacher's ppt on the knowledge to do this process to learn. The lesson, it should be I mentioned above on the area of interest. C language This subject I did not cultivate interest, self-feeling compared to failure, to the time of the examination is basically mechanically to brush the problem rather than seek to understand the topic.
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 also wrote in a previous blog, the whole C language learning process I probably only wrote more than 2000 lines of code, mostly to brush the problem and hard to gather, understand the situation can be imagined. Now think about it, only quantitative change can cause qualitative change, if even "quantity" can not reach, and talk about what "qualitative change." However, blindly brush the problem is also not advisable, to learn to understand the problem on the basis of the search for a more difficult breakthrough, which also requires us to do the problem of both quantity and quality. It is really effective practice to have a qualitative and purposeful practice.
learned the C language, you divide the array pointer, pointer array, function pointer, pointer function these concepts?
- Array pointers: Essentially pointers, meaning "pointers to arrays".
- Array of pointers: essentially arrays, meaning "arrays of stored pointers" whose elements are pointers.
- function pointer: essentially a pointer, pointing to a function.
- Pointer function: Essentially a function whose return type is a pointer.
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?
I don't know.
have you learned C language, do you know what is process-oriented programming? What is the way it solves the problem?
I think the so-called process design, embodies a "punches trivial" idea, that is, the big problem into a small problem can be solved, through a step by step to solve the small problem to solve the big problem. And the solution to every small problem is done through functions.
what is a module in C language? Have you ever written a program for multiple source files?
- In the C language, a large, holistic process is dispersed into small, functional-specific parts, which are modules.
- A program that has not written multiple source files.
have you learned the C language, do you know what is "high cohesion, low coupling"? How does this principle apply to high-quality programming?
Not too clear.
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.
#include <stdio.h>int main(){ char a[100] = "\0",b[100] = "\0"; int i = 0; printf("输入一行字符:\n"); scanf("%s",a); for(i = 0;a[i] != ‘\0‘;i++){ b[i] = a[i]; } printf("%s\n",b); return 0;
#include <stdio.h>void main(){ int x,i,find=0; int a[10]={7,3,9,1,4,5,6,2,8,0}; printf("请输入所查数字: "); 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不在所查数组中\n",x);}
#include<stdio.h>void main(){ int a[5]={0}; int i,j,t; printf("请输入五个整数\n"); for(i=0;i<5;i++) scanf("%d",&a[i]); for(i=0;i<5;i++) for(j=i+1;j<5;j++) if(a[i]<a[j]) { t=a[i]; a[i]=a[j]; a[j]=t; } for(i=0;i<5;i++) printf("%d ",a[i]);}
#include<stdio.h>void main(){ int a[5]={0}; int i,j,t; printf("请输入五个整数\n"); for(i=0;i<5;i++) scanf("%d",&a[i]); for(i=0;i<5;i++) for(j=i+1;j<5;j++) if(a[i]>a[j]) { t=a[i]; a[i]=a[j]; a[j]=t; } for(i=0;i<5;i++) printf("%d ",a[i]);}
Write a program that counts how many lines of code your C language has written.
Can't write ...
Do you know what a breakpoint is? Give an example of your own debug program.
After a breakpoint has been set somewhere in the program, it stops running when the program is run here.
refer to how to quickly read a book, quickly read the cloud class has PPT, each chapter raises a question
- What is anti-compilation in Java? What is a class?
- The problem of missing precision when assigning a value of type int to a byte variable.
- The Boolean type is?
- Is there a template for writing Java programs?
- What is an abstract class?
- Do not understand the specific differences between interfaces and abstract classes
- Assertion debugging in Java is to insert an assertion statement directly behind the code to debug it? How do I start an assertion?
- What is the difference between the string class and the StringBuffer class?
- How do you link classes, windows, components, layouts, and more?
- How file characters are entered and output
- How should the database master its methods?
- Process thread differentiation and how do I build multithreading?
- What are UDP and TCP?
- What is the default value for a rectangle-shaped component (0,0), is it a man-made rule or a system default?
- How do I use the various collection framework classes?
What specific goals do you have for the study of Java programming in comparison to the study of 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"?
The first study of C language experience for me is not pleasant, which directly led me to learn to update the course at the same time must be self-learning in the form of C language, is also a kind of own. For this semester of Java learning, I think first of all should start from the development of interest. For example, I have a great interest in installing virtual machines during this time. (of course, at the same time was also the whole of the same) during the holiday I will not relax the study of Java, I hope that in the formal beginning of school to learn when I can do not be pulled down by the high. Encounter not the problem first to try this from a variety of ways to obtain solutions, if the problem is not self-addressed to the teacher to consult, do not drag. Hope to be able to get a great harvest in Java learning from now on.
20165331 Learning Basics and C-language basic survey