C获取时间

方案1 优势:仅使用C标准库;缺点:只能精确到秒级 ios #include <time.h> #include <stdio.h> int main( void ) { char tempstr[100]; _strdate(tempstr); cout<<tempstr<<endl; time_t t = time( 0 ); char tm
相关文章
相关标签/搜索