水岛一凉的博客/*功能:将十进制数转换成十六进制数。-------------------------------------------------------*/#include "stdio.h"#include "string.h"void main (){int a,i,n;char s[20];printf("input a integer:\n");scanf(...
不断提高的博客#include "stdio.h" #include "stdlib.h" #define N 10 static void base_convert(void) { int num,base; int n[128]; int i = 0;... printf("please enter ...//输入任意的十进制 printf("please enter the base:");
EIDoradol的博客#include<stdio.h> #include<...void Numchange(int A, int B)//转换,超过10的换成字符串输出 { int x=0; if (A) { Numchange(A / B, B); //递归调用短除 ,算出进制 x = A ...