time.h 的函數ctime() 將日曆時間轉換成字串,因此以指向日曆時間的指標當作參數, ... <time.h> int main(void) { time_t t1 = time(NULL); char *now = ctime(&t1); ...
確定! 回上一頁