도와주세요 간단한건데 부탁드립니다..
흰두루
2023.04.01
질문 제목 : c언어로 시간경과를 작성질문 요약 :c언어로 시간경과를 작성하는데 어떻게 바꾸는지 모르겠어요.질문 내용 :
#include stdio.h
#include time.h
int main()
{
unsigned int seconds;
seconds = time(NULL);
printf(1970년 1월 1일 이후%d 시간경과\n,seconds/3600);
return 0;
}
이걸 2012년 1월 1일 이후 2012년 4월 1일 까지 몇시간이 흘렀고 몇일이 지낫는지 계산해야하는건데요 좀 도와주세요 2주째 배우고있는데 도저히 못하겠네요 ㅠㅠ