C++實現——由年月日推算是星期幾

#include <iostream> #include <string> #include <cmath> using namespace std; /* 語法:result = weekday(int N, int M, int d) 參數: N, M, d:年月日,例如:2003, 11, 4 返回值:0:星期天,1星期一…… 注意: 須要cmath 適用於1582年10月15日以後, 由
相關文章
相關標籤/搜索