触类旁通chù lâi pánɡ tōnɡ
第1题:
仔细拼,认真写。
qīn lüè rán shāo chuānɡ lián qī fù zhì huì
( ) ( ) ( ) ( ) ( )
shèn zhì chénɡ shòu méi tàn cí diǎn mù yù
( )( ) ( ) ( ) ( )
第2题:
菜
苹果
杯子
第3题:
胃疼
头疼
牙疼
第4题:
第5题:
北京
火车站
朋友家
第6题:
第7题:
第8题:
水果
米饭
中国菜
第9题:
太累了
生病了
天气太热
第10题:
步行
跑步
坐车
第11题:
学校
公司
饭馆
第12题:
笑
运动
唱歌
第13题:
下列给定程序中fun()函数的功能是:将n个无序整数从小到大排序。
请改正程序中的错误,使它能得出正确的结果。
注意;不要改动main函数,不得增行或删行,也不得更改程序的结构。
试题程序:
include <conio.h>
include <stdio.h>
include <stdlib.h>
fun(int n, int *a)
{ int i,j,p,t;
for (j=0;j<n-1;j++)
{ P=j;
/***************found*******************/
for(i=j+l;i<n-1;i++)
if (a[p]>a[i])
/***************found*******************/
t=i;
if (p!=j)
{t=a[j];a[j]=a[p];a[p]=t;}
}
}
putarr( iht n,int *z)
{int i;
for (i=l;i<=n;i++,z++)
{ printf("%4d",*z);
if (!(i%10)) printf("\n");
} printf ("\n");
}
main ()
{int aa[20]={9,3,0,4,1,2,5,6,8,10,7},n=11;
clrscr();
printf("\n\nBefore sorting %d numbers:\n",n); putarr(n,aa);
fun(n,aa);
printf("\nAfter sorting %d numbers:\n",n);putarr(n,aa);
}
第14题:
对
错
第15题:
旅游
出差
看朋友
第16题:
爸爸
同学
学生
第17题:
老师
开飞机
开出租车
第18题:
第19题:
没起床
迟到了
没来上课
第20题:
第21题:
请她吃饭
做饭
买菜
第22题:
第23题:
菜
身体
茶馆儿