摘要: #include <iostream> #define MAXSIZE 100 using namespace std; int combine(int a[],int b[],int c[],int n,int m) { int i=0,j=0,k=0; while(i<n&&j<m) { if( 阅读全文
posted @ 2017-09-14 16:01 erge1998 阅读(9402) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #define MAXSIZE 100 using namespace std; void find(int a[],int m) {int min=a[0],max=a[0]; for(int i=0;i<m;i++) { if(a[i]>max) { ma 阅读全文
posted @ 2017-09-14 15:59 erge1998 阅读(3869) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #define MAXSIZE 100 using namespace std; void reverse(int a[],int n)//对数组元素置换的函数,n表示要置换的元素个数 { if(n>MAXSIZE){cout<<"超出数组边界,元素位置置换失 阅读全文
posted @ 2017-09-14 15:57 erge1998 阅读(559) 评论(0) 推荐(0) 编辑