0
我試圖使多個整數中的字符串。多個整數到const char *
比方說:
int year = 1995;
int month = 12;
int day = 18;
const char* date = ("%d-%d-%d", month, day, year);
我得到:
error: invalid conversion from 'int' to 'const char*' [-fpermissive]
什麼是去了解它的最好方法?