#include <iostream.h>
#include <time.h>
#include <sys/types.h>
extern time_t time (const time_t *);
extern char *ctime (const time_t *);
main()
{
time_t t;
t = time((time_t*)NULL);
cout << ctime((time_t*)&t);
}
이거 말쌈 하시는 거에요?
근데.. 위에서 숫별님께서 말쌈 하신거 보면 스트럭쳐에서
분만 뽑으실려구 하는거 같기도 한데 그럴려면 localtime()
을 사용하셔야 하는데요.
---
if (t_snddis(KIDS[i].fd, (struct t_call *)NULL) == -1)
{ t_error("날 죽여라!!"); longjmp ((jmp_buf) HELL, -1); }