I would add a sanity check on the pointer as well: void AddTime(int seconds, tm* date) { if (date == NULL) return; date->tm_sec += seconds; ...
確定! 回上一頁