2022-07-28から1日間の記事一覧

localtime_sでええやないか

#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <string> #include <time.h> #include <vector> #include <algorithm> #include <map> using namespace std; int main(int argc, char* argv[]) { time_t now = time(nullptr); #if 0 tm nowtm = *localtime(&now); #else tm nowtm; localtime_s(</map></algorithm></vector></time.h></string></iostream>…