1. 首页
  2. 跨平台
  3. Cordova
  4. 万年历日历(C++程序小例)

万年历日历(C++程序小例)

上传者: 2020-09-17 06:53:22上传 TXT文件 2.82KB 热度 17次
#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;}
下载地址
用户评论
码姐姐匿名网友 2020-09-17 06:53:23

这个程序是实现了功能,但是没有什么注释,很费解。