最近有很多人都在试图用一个时间类来,这是我的代码:
#include<iostream>
#include<ctime>
#include<string>
#include<cstdio>
using namespace std;
class times{
protected:
char* time_c;
time_t time_use;
private:
string time_s;
string time_n;
string change(const char* mem)