C++ source code - multi-function small alarm clock