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日以后, 由
相关文章
相关标签/搜索