c/기초
119 : 디버깅-형성평가4
phantom0219
2019. 1. 8. 10:15
My Solution
//캡쳐 자료중 19.01.07 만든 날짜이며, 이 코드는 19.01.08로 수정하며 전체 디버깅 하여 올린것 코딩 부분이 올바른 내용
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #include <stdio.h> #include <time.h> //오늘 날짜 19.01.08 int main() { int a = 0; time_t now; struct tm tt; time(&now); tt = *localtime(&now); a = tt.tm_year; a += tt.tm_mon; a += tt.tm_mday; printf("%d %d %d\n", 0, 119, 127); return 0; } | cs |
반응형