>>486
int date2days(int month, int day)
{
static char days[] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };

for (month--;month>0;month--)
day += days[i];

return day;
}

2005年(とゆうか非うるう年)専用
脳内コンパイラな上、論理エラーが有るかも知れん
他の部分はmod7出せば直ぐだから自力で頑張ってみれ

とゆうかこんなのじゃC++の恩恵が無いな