摘要: 1.传统的C++方法,调用strftime函数#include <iostream>#include <ctime>using namespace std;int main(){ time_t now_time; now_time = time(NULL); char temp[64]; strftime(temp, sizeof(temp), "%Y%M%D%X%A%本年第%J天%Z", localtime(&now_time)); cout<<temp<<endl; return 0; }2.使用window的AP 阅读全文
posted @ 2011-12-17 11:07 庄子门生 阅读(263) 评论(0) 推荐(0)