万年历日历(C++程序小例)
#include #include #include using namespace std; void setcolor(unsigned short color) { HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(hCon,color); } int runnian(int x) { if(x%4==0) {if(x%100==0) {if(x%400==0) x=2; else x=1;} else x=2;}
下载地址
用户评论
这个程序是实现了功能,但是没有什么注释,很费解。