C语言 我想把int型的数据2014 12 12 拼成一个字符串 如何实现 求指教

2025-02-24 02:28:24
推荐回答(1个)
回答1:

char str[20];
sprintf(str, "%u%u%u",2014,12,12)
你可以把后面的数字换成相应的int型变量