摘要: void jinzhiConvert()//p进制转换为R进制{ int p,r,len,i,k,d,temp; char s[10],mod[10]; while(~scanf("%d %d %s",&p,&r,&s)) { len=strlen(s); k=1... 阅读全文
posted @ 2018-03-24 15:35 王雪亮 阅读(97) 评论(0) 推荐(0) 编辑
摘要: void fibonacci()//fibonacci序列{ int n; while(scanf("%d",&n)) { if(n0;j--) { if(temp==b[j-1]) {flag=0;break;} if(temp>b[j-1... 阅读全文
posted @ 2018-03-24 14:53 王雪亮 阅读(153) 评论(0) 推荐(0) 编辑
摘要: #include #include void convert(){ char strb[200]; int i; while(1) { gets(strb); if(strcmp(strb,"endofinput")==0) return; gets(strb)... 阅读全文
posted @ 2018-03-24 14:45 王雪亮 阅读(210) 评论(0) 推荐(0) 编辑