Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能是一个愚蠢的问题,但我找不到任何搜索...
是否有允许我获取当前时间的标准标题?否则有一些跨平台的选择吗?
怎么了<ctime>?!这是标准的,甚至MSDN 也承认:
<ctime>
time.h和时间函数。
使用提升日期时间。http://www.boost.org/doc/libs/1_40_0/doc/html/date_time/posix_time.html。