2011年10月21日

MFC字符串与时间的相互转换

摘要: 字符串--->时间: COleDateTime temp1; COleDateTime temp2; temp1.ParseDateTime(_T("9999-12-12")); temp2.ParseDateTime(_T("15:05:05")); 时间转换成字符串:COleDateTime beginTime(dlg.m_oleStartTime1.GetYear(), dlg.m_oleStartTime1.GetMonth(), dlg.m_oleStartTime1.GetDay(), dlg.m_oleStartTime2.GetHo 阅读全文

posted @ 2011-10-21 11:32 LateStop 阅读(3833) 评论(0) 推荐(0)

内存对齐的讲解

摘要: 来源自:http://www.cppblog.com/snailcong/archive/2009/03/16/76705.html程序说明一切://环境:vc6 + windows sp2//程序1#include <iostream>using namespace std;struct st1 { char a ; int b ; short c ;};struct st2{ short c ; char a ; int b ;};int main(){ cout<<"sizeof(st1) is "<<sizeof(st1)< 阅读全文

posted @ 2011-10-21 10:50 LateStop 阅读(274) 评论(0) 推荐(0)

导航