天真衬衫

文章
5
资源
0
加入时间
4年2月6天

C++获取上个月月底的日期

time_t timer;//time_t就是long int 类型struct tm *tblock;timer = time(NULL);//获取当前时间 long int 类型tblock = localtime(&timer);//将当前时间转变为 struct tm 结构unsigned int the_month_time = tblock->tm_mday*...