(C언어) _strdate,

#포함하다 char *_strdate(char *버퍼);char *_strtime(char *버퍼); _strdate 함수는 현재 날짜를 문자열로 변환합니다. _strtime 함수는 현재 시간을 문자열로 변환합니다. 변환된 문자열의 형식은 다음과 같습니다. MM/DD/YY 시간:분:초 #define _CRT_SECURE_NO_WARNINGS // Visual Studio #include <stdio.h> #include <time.h> int main() { char sdate (9); char stime(9); _strdate(sdate); _strtime(stime); printf(“현재 날짜: %s\n”, sdate); printf(“현재 시간: %s\n”, stime); return 0; } … Read more