this is the wrong code:
const time_t t = time(NULL);
struct tm *local;
local = localtime(&t);
reach.hour = local->tm_hour;
reach.min = local->tm_min;
I am making a Parking lot System. I want to store a time when the car comes and when the car leaves. But the code is wrong, It show 0x0073fbb8{stack=0x0073fbb8 {0x00000000 , 0xcccccccc {num={...} reach={hour=??? min=??? } leave=...}, ...} ...} NODE * {hour=??? min=??? } Unable to read memory. So I want to know how to store a time? the other codes are no problem.