2008年5月29日
摘要: Relation with Conversion1. WCHAR / TCHAR:WideCharToMultiByte()wcstombs()CString()ATL macros: OLE2A(),W2T(),W2CT(),lstrcpy() NOTE: #include <atlconv.h> swprintf(wchar,L"%LS",char); wcscpy(wchar,... 阅读全文
posted @ 2008-05-29 12:33 陈伟斌 阅读(1207) 评论(0) 推荐(0) 编辑
摘要: //方案— 优点:仅使用C标准库;缺点:只能精确到秒级 #include <time.h> #include <stdio.h> int main( void ) { time_t t = time(0); char tmp[64]; strftime( tmp, sizeof(tmp), "%Y/%m/%d %X %A 本年第%j天 %z",localtime(&... 阅读全文
posted @ 2008-05-29 11:20 陈伟斌 阅读(12079) 评论(1) 推荐(0) 编辑