기본 콘텐츠로 건너뛰기

printf에서 time_t는 뭘로 찍어야할까?

http://www.pixelbeat.org/programming/gcc/int_types/
time_t now(time(nullptr));
printf("%jd", static_cast<intmax_t>(now));

원본 위치: http://purewell.egloos.com/5038341

댓글