代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。