C库函数-asctime()-C语言实例教程|
来源:网络
编辑:媚叶
时间:2022-06-19
C库函数 - asctime()
#include <stdio.h> #include <string.h> #include <time.h> int main () { struct tm t; t.tm_sec = 10; t.tm_min = 10; t.tm_hour = 6; t.tm_mday = 25; t.tm_mon = 2; t.tm_year = 89; t.tm_wday = 6; puts(asctime(&t)); return(0); }
相关文章:
栏目分类
最新文章