摘要:
查找一个数组中存不存在一个数X。 1 #include<stdio.h> 2 int main(void) 3 { 4 int a[]={1,2,3,4,5,6,7,8,9,10},e,i,n,c; 5 scanf("%d",&e); 6 for(i=0;i<10;n=0,i++) 7 { 8 if 阅读全文
摘要:
把数组右循环移动1位。 1 #include<stdio.h> 2 int main(void) 3 { 4 int a[]={1,2,3,4,5,6,7,8,9,10},tmp,i,n; 5 printf("Input n...\nn="); 6 scanf("%d",&n); 7 while(n 阅读全文