直接上語句; str = “16”
1,字符串轉16進制
int a = strtol(str,NULL,16);
2,字符串轉10進制
int b = strtol(str,NULL,10);
或者:
int b = atoi(str);
直接上語句; str = “16”
1,字符串轉16進制
int a = strtol(str,NULL,16);
2,字符串轉10進制
int b = strtol(str,NULL,10);
或者:
int b = atoi(str);
id="I7" marginwidth="0" marginheight="0" src="http://www.bookeba.cn/securi