Into the Horizon

programming, photography, and daily log

2012-02-07から1日間の記事一覧

"GO FOR IT" 問題(1)「人生の時計」

#include <iostream> #include <time.h> using namespace std; #define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << endl; static int GetDays(int y, int m, int d) { //1年1月1日からの日数を返す // 1・2月 → 前年の13・14月 if (m <= 2) { --y; m</time.h></iostream>…