知道的进来指点一下!有分
我用的编译器是DEV C++
获取当前日期的函数是什么呢,具体怎么用呢,包含在哪个头文件里呢,谁知道请指点一下.谢谢
[解决办法]
CTime t = CTime::GetCurrentTime(); //获取系统日期
int d=t.GetDay(); //获得几号
int y=t.GetYear(); //获取年份
int m=t.GetMonth(); //获取当前月份
int h=t.GetHour(); //获取当前为几时
int mm=t.GetMinute(); //获取分钟
int s=t.GetSecond(); //获取秒
int w=t.GetDayOfWeek(); //获取星期几,注意1为星期天,7为星期六