C++判断曜日アルゴリズム
313 ワード
#include <stdio.h>
#include <stdint.h>
#include <time.h>
int main()
{
struct tm ts;
time_t t = time(NULL);
localtime_r(&t, &ts);
printf("%d", ts.tm_wday);
return 0;
}
#include <stdio.h>
#include <stdint.h>
#include <time.h>
int main()
{
struct tm ts;
time_t t = time(NULL);
localtime_r(&t, &ts);
printf("%d", ts.tm_wday);
return 0;
}