#define _CRT_SECURE_NO_WARNINGS #include <stdlib.h> #include <stdio.h> void main() { int num; scanf("%d", &num); char res[30] = { 0 }; _itoa(num, res, 16); printf("\n%s", res); system("pause"); }
时间: 2024-10-15 01:24:34
#define _CRT_SECURE_NO_WARNINGS #include <stdlib.h> #include <stdio.h> void main() { int num; scanf("%d", &num); char res[30] = { 0 }; _itoa(num, res, 16); printf("\n%s", res); system("pause"); }