C语言:输入一个十六进制字符串,将其转换成为对应的整数并输出转换结果。
C语言:输入一个十六进制字符串,将其转换成为对应的整数并输出转换结果。
日期:2015-05-21 11:14:33 人气:1
//#include "stdafx.h"//vc++6.0加上这一行.#include "stdio.h"#include "stdlib.h"int main(void){ int n; char x[9]; printf("Input n(int hex like 0x89fd)...\n"); scanf("%d",&n); wh