摘要: #include<stdio.h>int b[10]={1,1,2,3,3,5,6,6,7,9},a;int s(int m,int n){ int z; if(m<=n) { z=(m+n)/2; if(b[z]==a) return z; if(a<b[z]) return s(m,z-1); 阅读全文
posted @ 2016-07-07 20:46 岗寒 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 使用函数库: #include<stdio.h> #include<string.h> 源码(加法): #include<stdio.h> #include<string.h> char s[1000]; int main() { int i,l1,l2,l,a[1000]={0},b[1000]= 阅读全文
posted @ 2016-07-06 20:01 岗寒 阅读(141) 评论(4) 推荐(0) 编辑
摘要: 使用函数库: #include<stdio.h> #include<string.h> #include<stdlib.h> 源码(加法): #include<stdio.h> #include<string.h> #include<stdlib.h> int main(void) { char s 阅读全文
posted @ 2016-07-06 18:47 岗寒 阅读(80) 评论(0) 推荐(0) 编辑