Read the reading of secondary school
I think it is a good way to arouse students ' interest, curiosity and curiosity by giving students concrete, practical and immediate knowledge of the cause and effect of teaching materials and exercises. That's how I learned programming and software development. So I am very fond of the method of "learning to learn". The software engineering has the theory part, has the engineering part; Having the part of art, having a handicraft part; Before students reach the stage of theory/art, a lot of practice is necessary.
--quoting from Xin Zou teacher "modern software engineering handout"
To do middle school is to pay attention to the practice process, to put ideas into practice, thinking in practice, learning in practice.
#include <stdio.h>#define N 40int main(){ int a[N],b[N],i,n; printf("input number:\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>#define N 40int main(){ int a[N],i,n; printf("input number:\n"); scanf("%d",&n); printf("input a:\n"); for (i=0;i<=n;i++) { scanf("%d",&a[i]); if(a[i]==5) { printf("有\n"); break ; } } }
- To sort an integer array a
#include <stdio.h>#define N 40int main(){ int a[N],i,n,j,k; printf("input number:\n"); scanf("%d",&n); printf("input a:\n"); for (i=0;i<=n;i++) { scanf("%d",&a[i]); for(i=0;i<N;i++) { for(k=i,j=k+1;j<N;j++) if(a[k]<a[j]) k=j; if(k-i) j=a[k],a[k]=a[i],a[i]=j; printf("%d",a[i]); } }}
- This doesn't.
- I don't know.
Usually go to practice more.
Learning goals for JavaIn the grasp of the knowledge point of the situation, more practice, do not understand the more asked. To understand the meaning of each line of code, to try to improve the number of exercises after understanding
20165339 Learning Basics and C-language basic survey