C++代码文件:console.cpp
#include <afxcoll.h>
int main(int agec,char ** agev)
{
fprintf(stderr,"See if we have/n");
CTime oMyTime;
CString cDate;
oMyTime = CTime::GetCurrentTime();
cDate = oMyTime.Format("%A,%B %d,%Y");
fprintf(stdout,"The date is:%s/n",cDate);
return 0;
}