概述
将任意十进制数转化为16进制数;
#include<stdio.h>
int main()
{
int i=0;
char temp=0;
unsigned int a=0;
unsigned char mask=0x0000000f;
printf("Please enter number:");
scanf("%d",&a);
char str[11];
str[0]='0';
str[1]='X';
str[10]='
#include<stdio.h>
int main()
{
int i=0;
char temp=0;
unsigned int a=0;
unsigned char mask=0x0000000f;
printf("Please enter number:");
scanf("%d",&a);
char str[11];
str[0]='0';
str[1]='X';
str[10]='