C语言的题目HELP

日期:2013-07-17 14:33:32 人气:1

C语言的题目HELP

// 两函数均认为hex_arr有效长度至少为9(视情况选一个函数) void dec2hex(int num, char hex_arr[]){ if (num >= 0) { static const char _hex_chars[] = "0123456789ABCDEF"; short i, j = 0; memset(hex_arr, '0', 8); hex_arr[8] = 0;
    A+
热门评论