336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.

개념 :

1. time.h 에 포함되어 있는 ctime 함수를 사용합니다. 

2. 원형 : char* ctime(const time_t *timer)


소스 코드 : main.c

//

//  main.c

//  128

//

//  Created by 이준모 on 2018. 2. 8..

//  Copyright © 2018년 이준모. All rights reserved.

//


#include <stdio.h>

#include <time.h>

int main(int argc, const char * argv[])

{

    // insert code here...

    time_t now;

    time(&now);

    

    printf("현재 날짜 및 시간 : %s", ctime(&now));

    return 0;

}


결과:


+ Recent posts