I need help with this code I've been working on, I am a beginner to c++ and using xcode for my programs. The countdown on this clock treats the hours like minutes, the minutes like second,ect. I am also unable to to use system("clear") and when i do it tells me "TERM environment variable not set". I am asking for help on what I have missed or just gotten completely wrong. Any pointers or suggestions would be greatly appreciated.