start = time(NULL);
newtime = localtime(&start);
strftime(tmpbuf,128,"Start Time:\nData: %Y-%m-%d Time: %I:%M:%S\n",newtime);
printf (tmpbuf);
不知道为什么一直出现警告
1>d:\my documents\桌面\program0515\dsmcpro.cpp(103) : warning C4996: 'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include\time.inl(114) : 参见“localtime”的声明