- 10
- 0
- 约2.11万字
- 约 33页
- 2017-01-01 发布于广东
- 举报
1)
#include stdio.h
#define N 20
int fun ( int * a, int n )
{ int i, m, t, k ;
for(i=0;i2;i++) {
/**********found**********/
m=i;
for(k=i+1;kn;k++)
/**********found**********/
if(a[k]a[m]) m=k;
t=a[i];a[i]=a[m];a[m]=t;
}
}
main( )
{ int x, b[N]={11,5,12,0,3,6,9,7,10,8}, n=10, i;
for ( i=0; in; i++ ) printf(%d , b[i]);
printf(\n);
fun ( b, n );
for ( i=0; in; i++ ) printf(%d , b[i]);
printf(\n);
}
2))
#include stdio.h
#include string.h
/**********found**********/
void fun(char *str, char ch )
{ while ( *str *str != ch ) str++;
/*****
您可能关注的文档
最近下载
- 一级建造师建筑工程实务考试试题 (A+版).docx VIP
- 协同办公驱动高水头电站压力钢管裂纹研究:有限元分析视角与实践融合.docx VIP
- (新教材)2025年部编人教版七年级下册语文 23. “蛟龙”探海 课件.ppt
- KLQ6100G城市公交车车身造型与总布置等设计开题报告.doc VIP
- 残疾人健康讲座课件.pptx VIP
- 农民工工资投诉处理机制、方案.docx VIP
- BMC-ASPEED2400-开发专用数据手册.pdf VIP
- 管理会计综合实训单松答案.docx VIP
- 2026新茶饮行业白皮书_CIC灼识咨询&中国新茶饮产业联盟-2026-34页(2)(2).docx VIP
- 《政府办公楼电气系统设计-强电系统设计》》-毕业论文.doc VIP
原创力文档

文档评论(0)