题目:写出一个程序,接受一个十六进制的数值字符串,输出该数值的十进制字符串。(多组同时输入 )
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int m;
while (scanf("%x",&m) != EOF)
printf("%d\n",m);
//system("pause");
return 0;
}
题目:写出一个程序,接受一个十六进制的数值字符串,输出该数值的十进制字符串。(多组同时输入 )
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int m;
while (scanf("%x",&m) != EOF)
printf("%d\n",m);
//system("pause");
return 0;
}