[C] 把日期和时间转换为字符串 →→→→→进入此内容的聊天室

来自 , 2019-09-04, 写在 C, 查看 122 次.
URL http://www.code666.cn/view/b0df2270
  1. #include <stdio.h>
  2. #include <time.h>
  3.  
  4. int main ( void )
  5. {
  6.         time_t t;
  7.  
  8.         time ( &t );
  9.         printf ( "Today's date and time: %s\n", ctime ( &t ) );
  10.         return 0;
  11. }

回复 "把日期和时间转换为字符串"

这儿你可以回复上面这条便签

captcha