#include#include #include using namespace std; int main() { time_t t; struct tm p, q; time(&t); for (int i = 0; i < 6; i++) { t -= 10; char time22[30]; p = *localtime(&t); strftime(time22, 30, "%Y%m%d %H%M%S", &p); cout << time22 << endl; } return 0; }
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)