1 Star 1 Fork 0

yxyc-137/Team collaboration calendar

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
global.h 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef GLOBAL_H
#define GLOBAL_H
#include<iostream>
#include<string>
#include<algorithm>
#include<chrono>
#include<ctime>
#include<cctype>
#include<vector>
#include<array>
#include<iomanip>
//全局函数
//无顺序
bool string_is_space(std::string s);
bool string_is_number(std::string s);
unsigned int string_to_unsigned(std::string s);
void print_now_time();
unsigned int get_xingqi(unsigned int year,unsigned int month);
std::string get_xingqi(unsigned int xingqi);
std::array<unsigned int,2> get_now_year_month();
unsigned int get_now_day();
// 将 time_point 转换为 int64_t
int64_t time_point_to_int64(const std::chrono::time_point<std::chrono::steady_clock>& tp);
// 将 int64_t 转换为 time_point
std::chrono::time_point<std::chrono::steady_clock> int64_to_time_point(int64_t ns);
//按顺序
bool isLeapYear(int year);
int daysInMonth(int year,int month);
std::array<int,3> nextDay(int year,int month,int day);
//全局变量
extern unsigned int now_year ;
extern unsigned int now_month;
extern unsigned int now_day;
//重置颜色
extern const char * reset;
extern const char * f_red;
extern const char * f_green;
extern const char * f_black;
extern const char * f_yellow;
extern const char * f_blue;
extern const char * f_purple;
extern const char * f_qingse;
extern const char * f_white;
//背景色
extern const char * b_red;
extern const char * b_green;
extern const char * b_black;
extern const char * b_yellow;
extern const char * b_blue;
extern const char * b_purple;
extern const char * b_qingse;
extern const char * b_white;
#endif // !GLOBAL_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/yxyc-137/Team_collaboration_calendar.git
git@gitee.com:yxyc-137/Team_collaboration_calendar.git
yxyc-137
Team_collaboration_calendar
Team collaboration calendar
master

搜索帮助