看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) g++ Linux C 問題(Question): 不曉得有沒有function 可紀錄執行程式時,紀錄下執行的時間。 預期的正確結果(Expected Output): 15:40:32 Tue 5/25 2015 這種的格式 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.117.164.19 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1430984372.A.832.html
azureblaze: strftime() 05/07 15:41
FierceBreast: THX. 可以了 我發現 asctime() 也是可以唷 05/07 18:30