time() returns time_t, to convert it to tm structure, you can use localtime(). Change to tm *myTime = localtime(&present);.
確定! 回上一頁