利用Visual C++制作WINDOWS提供的“日期和时间属性

来源:百度知道 编辑:UC知道 时间:2024/06/01 00:59:52
利用Visual C++制作WINDOWS提供的“日期和时间属性”,但是希望加入农历,有的给我发消息或和我QQ联系283253149,或者发到我的邮箱chenxiaocong1212@163.com,谢谢了

struct tm *newtime;
char *tmpbuf = new char[128];
time_t lt;
time(<);
newtime = localtime(<);
strftime(tmpbuf,128,"%c",newtime);
cout<<tmpbuf<<endl;

一楼写的是什么乱七八糟的东西啊,不会也不要来骗分啊