可以这样写:
SYSTEMTIME st;
GetLocalTime(&st);
SYSTEMTIME st;
GetLocalTime(&st);
解决方案 »
- 我想在我的程序中打印一个小箭头,就是word中按回车出现的小箭头,谁能给我?
- 求思路,想做个类似visio绘图软件
- 一个注册号的算法问题!!急
- 关于最小化的问题
- VB能做到,VC不知道行不行,流量统计的具体方法
- 如何在COM中返回一个自定义的ToolBar指针?
- 请问如何在BMP图象某一像素点位置写字!
- self draw something in a child control, but it's out of range, how do I?
- 怎样用IShellLink读出快捷方式里面的内容?
- LNK2001: unresolved external symbol
- 如何取得框架类的指针?
- 如何区分字符串中的中文和英文?
CTime currenttime=CTime::GetCurrentTime();
currenttime.format(yourformat)
即可
CTime currenttime = CTime::GetCurrentTime();
CString m_createtime = currenttime.Format("%#Y/%#m/%#d");
得:
2001/05/17
哈哈...............
);
用currenttime.Format()怎样能获得时、分、秒?谢谢!